From cdb75729cb803527225276248107d8c692b7036f Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 15 Mar 2018 16:49:58 +0000 Subject: [PATCH] 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] --- synchro/synchrodatasource.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }