mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
🎨 fix param order for \CMDBSource::IsSameFieldTypes call + code formatting
This commit is contained in:
@@ -1109,29 +1109,21 @@ EOF
|
||||
$bOneColIsMissing = true;
|
||||
if ($bVerbose)
|
||||
{
|
||||
if (count($aColumns) > 1)
|
||||
{
|
||||
if (count($aColumns) > 1) {
|
||||
echo "Missing column '$sColName', in the table '$sTable' for the data synchro task ".$this->GetName().' ('.$this->GetKey()."). The columns '".implode("', '",
|
||||
$aColumns)." will be re-created.'.\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
echo "Missing column '$sColName', in the table '$sTable' for the data synchro task ".$this->GetName().' ('.$this->GetKey()."). The column '$sColName' will be added.\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif (!CMDBSource::IsSameFieldTypes(CMDBSource::GetFieldSpec($sTable, $sColName), $sColumnDef))
|
||||
{
|
||||
} elseif (!CMDBSource::IsSameFieldTypes($sColumnDef, CMDBSource::GetFieldSpec($sTable, $sColName))) {
|
||||
$bFixNeeded = true;
|
||||
$bOneColIsMissing = true;
|
||||
if (count($aColumns) > 1)
|
||||
{
|
||||
if (count($aColumns) > 1) {
|
||||
echo "Incorrect column '$sColName' (".CMDBSource::GetFieldType($sTable,
|
||||
$sColName).' instead of '.$sColumnDef."), in the table '$sTable' for the data synchro task ".$this->GetName().' ('.$this->GetKey()."). The columns '".implode("', '",
|
||||
$aColumns)." will be re-created.'.\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
echo "Incorrect column '$sColName' (".CMDBSource::GetFieldType($sTable,
|
||||
$sColName).' instead of '.$sColumnDef."), in the table '$sTable' for the data synchro task ".$this->GetName().' ('.$this->GetKey()."). The column '$sColName' will be added.\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user