Commit ecbb122d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Feature: write intermediate QFQ version after every DB update step.

parent 67dfe06b
......@@ -116,6 +116,8 @@ class DatabaseUpdate {
if ($dbUpdate === SYSTEM_DB_UPDATE_ALWAYS || ($dbUpdate === SYSTEM_DB_UPDATE_AUTO && $new != $old)) {
$this->dbUpdateStatements($old, $new);
$this->db->playSqlFile(__DIR__ . '/../../sql/formEditor.sql');
// Finally write the latest version number.
$this->setDatabaseVersion($new);
}
}
......@@ -167,6 +169,8 @@ class DatabaseUpdate {
foreach ($sqlStatements as $sql) {
$this->db->sql($sql);
}
// Remember already applied updates - in case something breaks and the update has to be repeated.
$this->setDatabaseVersion($new);
}
}
}
......
Supports Markdown
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