mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix #1085 index creation error if duplicate rows already exist
기존에 중복으로 저장된 데이터가 있는 경우 UNIQUE 인덱스를 생성할 수 없으므로 이런 경우에는 기존 방식 그대로 일반 인덱스를 생성하도록 함.
This commit is contained in:
parent
a899ae6166
commit
1a2f6e5513
1 changed files with 4 additions and 0 deletions
|
|
@ -443,6 +443,10 @@ 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'))
|
||||
{
|
||||
$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