X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/33ff96fd8323040f4551839e55c061b048329f66..828da6a4254db001c05e3e3c2074dd791e33d8a5:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index 8ad96a95..3015f13a 100644 --- a/utils/setup.php +++ b/utils/setup.php @@ -100,6 +100,7 @@ if ($aCMDResult['create-tables'] || $aCMDResult['all']) { $bDidSomething = true; $oSetup->createTables($aCMDResult['reverse-only']); $oSetup->createFunctions(); + $oSetup->createTableTriggers(); } if ($aCMDResult['create-partition-tables'] || $aCMDResult['all']) { @@ -137,6 +138,11 @@ if ($aCMDResult['index'] || $aCMDResult['all']) { $oSetup->index($aCMDResult['index-noanalyse']); } +if ($aCMDResult['drop']) { + $bDidSomething = true; + $oSetup->drop($aCMDResult); +} + if ($aCMDResult['create-search-indices'] || $aCMDResult['all']) { $bDidSomething = true; $oSetup->createSearchIndices(); @@ -147,11 +153,6 @@ if ($aCMDResult['create-country-names'] || $aCMDResult['all']) { $oSetup->createCountryNames($aCMDResult); } -if ($aCMDResult['drop']) { - $bDidSomething = true; - $oSetup->drop($aCMDResult); -} - // ****************************************************** // If we did something, repeat the warnings if (!$bDidSomething) {