X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4088e4e3719dc0ee5b446c97eb1db9650ddbab0d..a437f5d18a48d3f982e965ef81c93f71a73e53e0:/lib/setup/SetupClass.php diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 8e33fef8..b96b186b 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -649,9 +649,14 @@ class SetupFunctions private function createSqlFunctions() { $sBasePath = CONST_BasePath.'/sql/functions/'; - $sTemplate = file_get_contents(CONST_BasePath.'/sql/functions.sql'); + $sTemplate = file_get_contents($sBasePath.'utils.sql'); $sTemplate .= file_get_contents($sBasePath.'normalization.sql'); $sTemplate .= file_get_contents($sBasePath.'importance.sql'); + $sTemplate .= file_get_contents($sBasePath.'address_lookup.sql'); + $sTemplate .= file_get_contents($sBasePath.'interpolation.sql'); + $sTemplate .= file_get_contents($sBasePath.'place_triggers.sql'); + $sTemplate .= file_get_contents($sBasePath.'placex_triggers.sql'); + $sTemplate .= file_get_contents($sBasePath.'postcode_triggers.sql'); $sTemplate = str_replace('{modulepath}', $this->sModulePath, $sTemplate); if ($this->bEnableDiffUpdates) { $sTemplate = str_replace('RETURN NEW; -- %DIFFUPDATES%', '--', $sTemplate);