X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c1beefd543974541f265d0f8df3a402d0e7a23e5..ec4e3c36af238ae3c31a2f5eb727fe2a22f6d054:/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) {