mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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
|
|
@ -249,8 +249,8 @@ class Module extends ModuleObject
|
|||
}
|
||||
if(!$oDB->isIndexExists('module_part_config', 'unique_module_part_config'))
|
||||
{
|
||||
$oDB->addIndex('module_part_config', 'unique_module_part_config', array('module', 'module_srl'), true);
|
||||
if(!$oDB->isIndexExists('module_part_config', 'unique_module_part_config'))
|
||||
$output = $oDB->addIndex('module_part_config', 'unique_module_part_config', array('module', 'module_srl'), true);
|
||||
if (!$output->toBool())
|
||||
{
|
||||
$oDB->addIndex('module_part_config', 'unique_module_part_config', array('module', 'module_srl'), false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue