mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +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)
|
foreach (self::DBGetIndexes($sClass) as $aColumns)
|
||||||
{
|
{
|
||||||
$sIndexId = implode('_', $aColumns);
|
$sIndexId = implode('_', $aColumns);
|
||||||
|
if (isset($aTableInfo['Indexes'][$sIndexId]) && $aTableInfo['Indexes'][$sIndexId]['used'])
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(!CMDBSource::HasIndex($sTable, $sIndexId, $aColumns))
|
if(!CMDBSource::HasIndex($sTable, $sIndexId, $aColumns))
|
||||||
{
|
{
|
||||||
$sColumns = "`".implode("`, `", $aColumns)."`";
|
$sColumns = "`".implode("`, `", $aColumns)."`";
|
||||||
|
|||||||
Reference in New Issue
Block a user