Enhancement: make the deletion of a Synchro Data Source a bit more resistant, in case of a missing or already deleted data table.

SVN:trunk[5437]
This commit is contained in:
Denis Flaven
2018-03-15 16:49:58 +00:00
parent b28c45c84c
commit cdb75729cb

View File

@@ -862,7 +862,7 @@ EOF
$sTable = $this->GetDataTable();
$sDropTable = "DROP TABLE `$sTable`";
$sDropTable = "DROP TABLE IF EXISTS `$sTable`"; // Do not fail if the table is already deleted (corrupted database)
CMDBSource::Query($sDropTable);
// TO DO - check that triggers get dropped with the table
}