mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user