mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-08 02:54:08 +00:00
Merge pull request #1484 from mtmail/ignore-errors-on-setup-drop
on --drop warn on non-existing tables, dont croak
This commit is contained in:
@@ -725,9 +725,7 @@ class SetupFunctions
|
|||||||
}
|
}
|
||||||
foreach ($aDropTables as $sDrop) {
|
foreach ($aDropTables as $sDrop) {
|
||||||
if ($this->bVerbose) echo "Dropping table $sDrop\n";
|
if ($this->bVerbose) echo "Dropping table $sDrop\n";
|
||||||
$this->oDB->exec("DROP TABLE $sDrop CASCADE");
|
$this->oDB->exec("DROP TABLE IF EXISTS $sDrop CASCADE");
|
||||||
// ignore warnings/errors as they might be caused by a table having
|
|
||||||
// been deleted already by CASCADE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) {
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) {
|
||||||
|
|||||||
Reference in New Issue
Block a user