X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/32683f73c787464e16f2a146d4c08c4041087dd5..db5e78c8792a62c5e2c4e6b18f12b0d55151b1ed:/lib-php/admin/setup.php diff --git a/lib-php/admin/setup.php b/lib-php/admin/setup.php index d3831322..6fca7c3c 100644 --- a/lib-php/admin/setup.php +++ b/lib-php/admin/setup.php @@ -126,12 +126,12 @@ if ($aCMDResult['create-partition-tables'] || $aCMDResult['all']) { if ($aCMDResult['create-partition-functions'] || $aCMDResult['all']) { $bDidSomething = true; - $oSetup->createPartitionFunctions(); + $oSetup->createFunctions(); // also create partition functions } if ($aCMDResult['import-wikipedia-articles'] || $aCMDResult['all']) { $bDidSomething = true; - $oSetup->importWikipediaArticles(); + (clone($oNominatimCmd))->addParams('refresh', '--wiki-data')->run(); } if ($aCMDResult['load-data'] || $aCMDResult['all']) { @@ -157,7 +157,7 @@ if ($aCMDResult['index'] || $aCMDResult['all']) { if ($aCMDResult['drop']) { $bDidSomething = true; - $oSetup->drop($aCMDResult); + (clone($oNominatimCmd))->addParams('freeze')->run(true); } if ($aCMDResult['create-search-indices'] || $aCMDResult['all']) { @@ -172,7 +172,7 @@ if ($aCMDResult['create-country-names'] || $aCMDResult['all']) { if ($aCMDResult['setup-website'] || $aCMDResult['all']) { $bDidSomething = true; - $oSetup->setupWebsite(); + (clone($oNominatimCmd))->addParams('refresh', '--website')->run(true); } // ******************************************************