diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index f41336bc4..3cd493e11 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -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 }