mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add last active date to member_devices table
This commit is contained in:
parent
e87bd70e98
commit
5ea9d52b0c
6 changed files with 31 additions and 3 deletions
|
|
@ -7,7 +7,7 @@
|
|||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member_srl" var="member_srl" />
|
||||
<condition operation="equal" column="device_token" var="device_token" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="device_token" var="device_token" pipe="and" />
|
||||
<condition operation="equal" column="device_key" var="device_key" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@
|
|||
<column name="device_description" var="device_description" />
|
||||
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
<column name="last_active_date" var="last_active_date" default="curdate()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
11
modules/member/queries/updateMemberDeviceLastActiveDate.xml
Normal file
11
modules/member/queries/updateMemberDeviceLastActiveDate.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="updateMemberDeviceLastActiveDate" action="update">
|
||||
<tables>
|
||||
<table name="member_devices" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="last_active_date" default="curdate()" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="device_token" var="device_token" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue