]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup/SetupClass.php
Make rank assignments configurable
[nominatim.git] / lib / setup / SetupClass.php
index 5c6d69e43bcf52160b943008b05c7a506a27d642..0f96bc8bdccba6d46ae10d2cffc49e73f92a33e4 100755 (executable)
@@ -2,6 +2,8 @@
 
 namespace Nominatim\Setup;
 
+require_once(CONST_BasePath.'/lib/setup/AddressLevelParser.php');
+
 class SetupFunctions
 {
     protected $iCacheMemory;
@@ -272,6 +274,9 @@ class SetupFunctions
         if ($bReverseOnly) {
             $this->pgExec('DROP TABLE search_name');
         }
+
+        $oAlParser = new AddressLevelParser(CONST_Address_Level_Config);
+        $oAlParser->createTable($this->oDB, 'address_levels');
     }
 
     public function createPartitionTables()