Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
ecbb122d
Commit
ecbb122d
authored
Mar 10, 2018
by
Carsten Rose
Browse files
Feature: write intermediate QFQ version after every DB update step.
parent
67dfe06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/database/DatabaseUpdate.php
View file @
ecbb122d
...
...
@@ -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
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment