X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9bdbbec0c8141bdcb22fb562b4e1235dadcc446c..e70f405abddfe5a8a7400424558071ebba769eda:/utils/update.php diff --git a/utils/update.php b/utils/update.php old mode 100755 new mode 100644 index c70bdf54..24095ef4 --- a/utils/update.php +++ b/utils/update.php @@ -1,12 +1,15 @@ -#!/usr/bin/php -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) {