mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 12:04:06 +00:00
fix variable name in setup --drop
This commit is contained in:
@@ -703,15 +703,17 @@ class SetupFunctions
|
|||||||
if (!$bFound) array_push($aDropTables, $sTable);
|
if (!$bFound) array_push($aDropTables, $sTable);
|
||||||
}
|
}
|
||||||
foreach ($aDropTables as $sDrop) {
|
foreach ($aDropTables as $sDrop) {
|
||||||
if ($this->sVerbose) echo "dropping table $sDrop\n";
|
if ($this->sVerbose) echo "Dropping table $sDrop\n";
|
||||||
@pg_query($this->oDB->connection, "DROP TABLE $sDrop CASCADE");
|
@pg_query($this->oDB->connection, "DROP TABLE $sDrop CASCADE");
|
||||||
// ignore warnings/errors as they might be caused by a table having
|
// ignore warnings/errors as they might be caused by a table having
|
||||||
// been deleted already by CASCADE
|
// 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) {
|
||||||
if ($sVerbose) echo 'deleting '.CONST_Osm2pgsql_Flatnode_File."\n";
|
if (file_exists(CONST_Osm2pgsql_Flatnode_File)) {
|
||||||
unlink(CONST_Osm2pgsql_Flatnode_File);
|
if ($this->sVerbose) echo 'Deleting '.CONST_Osm2pgsql_Flatnode_File."\n";
|
||||||
|
unlink(CONST_Osm2pgsql_Flatnode_File);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user