Cleanup related to phone country change

This commit is contained in:
Kijin Sung 2020-03-18 23:56:54 +09:00
parent 0e9ce525da
commit 1db4a9d752
9 changed files with 60 additions and 8 deletions

View file

@ -0,0 +1,11 @@
<query id="getMemberCountByPhoneCountry" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="phone_country" var="phone_country" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="updateMemberPhoneCountry" action="update">
<tables>
<table name="member" />
</tables>
<columns>
<column name="phone_country" var="new_phone_country" />
</columns>
<conditions>
<condition operation="equal" column="phone_country" var="old_phone_country" notnull="notnull" />
</conditions>
</query>