move SQL functions for normalisation in separate file

This commit is contained in:
Sarah Hoffmann
2020-01-05 15:38:20 +01:00
parent 2059e18e8b
commit 0ef6425847
3 changed files with 425 additions and 374 deletions

View File

@@ -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);