mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Add 'phone_number' column to member table
This commit is contained in:
parent
91550131ac
commit
2c221019e4
2 changed files with 13 additions and 1 deletions
|
|
@ -201,6 +201,8 @@ class member extends ModuleObject {
|
|||
if(!$oDB->isColumnExists("member", "find_account_question")) return true;
|
||||
if(!$oDB->isColumnExists("member", "find_account_answer")) return true;
|
||||
|
||||
if(!$oDB->isColumnExists("member", "phone_number")) return true;
|
||||
if(!$oDB->isIndexExists("member","idx_phone_number")) return true;
|
||||
if(!$oDB->isColumnExists("member", "list_order")) return true;
|
||||
if(!$oDB->isIndexExists("member","idx_list_order")) return true;
|
||||
|
||||
|
|
@ -307,6 +309,15 @@ class member extends ModuleObject {
|
|||
{
|
||||
$oDB->addColumn("member", "find_account_answer", "varchar", 250);
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists("member", "phone_number"))
|
||||
{
|
||||
$oDB->addColumn("member", "phone_number", "varchar", 80, null, false, 'email_address');
|
||||
}
|
||||
if(!$oDB->isIndexExists("member","idx_phone_number"))
|
||||
{
|
||||
$oDB->addIndex("member","idx_phone_number", array("phone_number"));
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists("member", "list_order"))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<table name="member">
|
||||
<column name="member_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="user_id" type="varchar" size="80" notnull="notnull" unique="unique_user_id" />
|
||||
<column name="email_address" type="varchar" size="250" notnull="notnull" unique="unique_email_address" />
|
||||
<column name="email_address" type="varchar" size="80" notnull="notnull" unique="unique_email_address" />
|
||||
<column name="phone_number" type="varchar" size="80" index="idx_phone_number" />
|
||||
<column name="password" type="varchar" size="60" notnull="notnull" />
|
||||
<column name="email_id" type="varchar" size="80" notnull="notnull" />
|
||||
<column name="email_host" type="varchar" size="160" index="idx_email_host" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue