mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Show error when unique index creation fails
This commit is contained in:
parent
4632a10a31
commit
fda92b368d
2 changed files with 7 additions and 3 deletions
|
|
@ -388,7 +388,11 @@ class Member extends ModuleObject
|
|||
}
|
||||
if(!$oDB->isIndexExists('member_auth_mail', 'unique_auth_key'))
|
||||
{
|
||||
$oDB->addIndex('member_auth_mail', 'unique_auth_key', ['auth_key'], true);
|
||||
$output = $oDB->addIndex('member_auth_mail', 'unique_auth_key', ['auth_key'], true);
|
||||
if (!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
if(!$oDB->isIndexExists('member_auth_mail', 'idx_member_srl'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue