]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup/SetupClass.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / setup / SetupClass.php
index 38f361e74e72b3952a4363b44a4a82601fe584d2..b96b186b7b2d67eeb1ba980606a27e3bc46499d1 100755 (executable)
@@ -648,7 +648,15 @@ class SetupFunctions
 
     private function createSqlFunctions()
     {
-        $sTemplate = file_get_contents(CONST_BasePath.'/sql/functions.sql');
+        $sBasePath = CONST_BasePath.'/sql/functions/';
+        $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);