]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup/SetupClass.php
move SQL functions for normalisation in separate file
[nominatim.git] / lib / setup / SetupClass.php
index 38f361e74e72b3952a4363b44a4a82601fe584d2..92d6347b0ad770f684d03f41c24f2a31d9ef2ca3 100755 (executable)
@@ -648,7 +648,9 @@ class SetupFunctions
 
     private function createSqlFunctions()
     {
+        $sBasePath = CONST_BasePath.'/sql/functions/';
         $sTemplate = file_get_contents(CONST_BasePath.'/sql/functions.sql');
+        $sTemplate .= file_get_contents($sBasePath.'normalization.sql');
         $sTemplate = str_replace('{modulepath}', $this->sModulePath, $sTemplate);
         if ($this->bEnableDiffUpdates) {
             $sTemplate = str_replace('RETURN NEW; -- %DIFFUPDATES%', '--', $sTemplate);