mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-16 22:08:44 +02:00
N°1420 - Fix index generation
SVN:2.4[5837]
This commit is contained in:
@@ -3911,7 +3911,10 @@ abstract class MetaModel
|
||||
foreach (self::DBGetIndexes($sClass) as $aColumns)
|
||||
{
|
||||
$sIndexId = implode('_', $aColumns);
|
||||
|
||||
if (isset($aTableInfo['Indexes'][$sIndexId]) && $aTableInfo['Indexes'][$sIndexId]['used'])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if(!CMDBSource::HasIndex($sTable, $sIndexId, $aColumns))
|
||||
{
|
||||
$sColumns = "`".implode("`, `", $aColumns)."`";
|
||||
|
||||
Reference in New Issue
Block a user