mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 23:32:54 +09:00
Separate default value from options in member extra vars, too
This commit is contained in:
parent
4b2cc8c9cf
commit
c949e797b0
11 changed files with 92 additions and 44 deletions
|
|
@ -167,6 +167,9 @@ class Member extends ModuleObject
|
|||
if(!$oDB->isIndexExists('member_auth_mail', 'idx_member_srl')) return true;
|
||||
if($oDB->isIndexExists('member_auth_mail', 'unique_key')) return true;
|
||||
|
||||
// Check join form options column
|
||||
if(!$oDB->isColumnExists('member_join_form', 'options')) return true;
|
||||
|
||||
// Update status column
|
||||
$output = executeQuery('member.getDeniedAndStatus');
|
||||
if ($output->data->count)
|
||||
|
|
@ -403,6 +406,12 @@ class Member extends ModuleObject
|
|||
$oDB->dropIndex('member_auth_mail', 'unique_key');
|
||||
}
|
||||
|
||||
// Check join form options column
|
||||
if(!$oDB->isColumnExists('member_join_form', 'options'))
|
||||
{
|
||||
$oDB->addColumn('member_join_form', 'options', 'text', null, null, null, 'default_value');
|
||||
}
|
||||
|
||||
// Update status column
|
||||
$output = executeQuery('member.getDeniedAndStatus');
|
||||
if ($output->data->count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue