Fix DBSchema update fails when an ENUM column contains values which are not / no longer part of the field definition (#188)

This commit is contained in:
Denis
2021-04-01 12:13:52 +02:00
committed by GitHub
parent 216489ab2d
commit 78d82528fc
3 changed files with 71 additions and 7 deletions

View File

@@ -1120,7 +1120,7 @@ EOF
}
}
}
elseif (strcasecmp(CMDBSource::GetFieldType($sTable, $sColName), $sColumnDef) != 0)
elseif (!CMDBSource::IsSameFieldTypes(CMDBSource::GetFieldSpec($sTable, $sColName), $sColumnDef))
{
$bFixNeeded = true;
$bOneColIsMissing = true;