]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup/SetupClass.php
Include CheckSymbolExists CMake module
[nominatim.git] / lib / setup / SetupClass.php
index b6705968752abdecd81a06b8682072b1b44d7dea..489552486caa2e04909501d6ff8e7611554e1cb5 100755 (executable)
@@ -725,9 +725,7 @@ class SetupFunctions
         }
         foreach ($aDropTables as $sDrop) {
             if ($this->bVerbose) echo "Dropping table $sDrop\n";
-            $this->oDB->exec("DROP TABLE $sDrop CASCADE");
-            // ignore warnings/errors as they might be caused by a table having
-            // been deleted already by CASCADE
+            $this->oDB->exec("DROP TABLE IF EXISTS $sDrop CASCADE");
         }
 
         if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) {