Commit 780e251d authored by Carsten  Rose's avatar Carsten Rose

reformat code

parent 0d4b4ee4
Pipeline #2265 passed with stages
in 2 minutes and 47 seconds
......@@ -164,6 +164,7 @@ class DatabaseUpdate {
* @throws \UserFormException
*/
private function updateSqlFunctions($oldFunctionsHash) {
if (ACTION_FUNCTION_UPDATE_NEVER === $oldFunctionsHash) {
return null;
}
......@@ -190,6 +191,7 @@ class DatabaseUpdate {
"in " . QFQ_FUNCTION_SQL . ", this usually leads to errors when trying to execute it on the database.";
throw new \DbException(json_encode($errorMsg), ERROR_PLAY_SQL_FILE);
}
try {
$this->db->playMultiQuery($query);
$functionsHashTest = $this->db->sql('SELECT GETFUNCTIONSHASH() AS res;', ROW_EXPECT_1)['res'];
......@@ -198,6 +200,7 @@ class DatabaseUpdate {
} catch (\CodeException $e) {
$functionsHashTest = null;
}
if ($functionHash !== null AND $functionsHashTest === $functionHash) {
return $functionHash;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment