X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e936041713ddc7c9ed114ff6d7b7b65c379c9c8a..7d74bf781c3db408d26b200c72fbbb85371f0ed0:/utils/update.php diff --git a/utils/update.php b/utils/update.php old mode 100755 new mode 100644 index 46f70062..24095ef4 --- a/utils/update.php +++ b/utils/update.php @@ -1,12 +1,15 @@ -#!@PHP_BIN@ -Cq true, + 'verbose' => $aResult['verbose'] + )); + $cSetup->connect(); + $cSetup->createFunctions(); } $sDatabaseDate = getDatabaseDate($oDB); @@ -300,6 +307,12 @@ if ($aResult['index']) { runWithEnv($sCmd, $aProcEnv); } +if ($aResult['update-address-levels']) { + echo 'Updating address levels from '.CONST_Address_Level_Config.".\n"; + $oAlParser = new \Nominatim\Setup\AddressLevelParser(CONST_Address_Level_Config); + $oAlParser->createTable($oDB, 'address_levels'); +} + if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { // if (strpos(CONST_Replication_Url, 'download.geofabrik.de') !== false && CONST_Replication_Update_Interval < 86400) {