summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-07 11:17:36 +0200
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-10-13 08:31:33 +0000
commit6e4a90ba36e158ef0aa52f1ee085f43383dd9dc4 (patch)
treedb1b97047ebe406d7d57db7e728775cb9db31a34 /core
parent107a974b3649b04a1a1a40db2536a0502ae682b9 (diff)
downloadnextcloud-server-6e4a90ba36e158ef0aa52f1ee085f43383dd9dc4.tar.gz
nextcloud-server-6e4a90ba36e158ef0aa52f1ee085f43383dd9dc4.zip
Fix SQL errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Migrations/Version25000Date20221007010957.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/Migrations/Version25000Date20221007010957.php b/core/Migrations/Version25000Date20221007010957.php
index 5c069de35a1..2c18d180dd7 100644
--- a/core/Migrations/Version25000Date20221007010957.php
+++ b/core/Migrations/Version25000Date20221007010957.php
@@ -55,10 +55,12 @@ class Version25000Date20221007010957 extends SimpleMigrationStep {
$qb = $this->connection->getQueryBuilder();
$qb->update('preferences')
- ->set('appid', 'theming')
+ ->set('appid', $qb->createNamedParameter('theming'))
->where($qb->expr()->eq('appid', $qb->createNamedParameter('dashboard')))
- ->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter('background')))
- ->orWhere($qb->expr()->eq('configkey', $qb->createNamedParameter('backgroundVersion')));
+ ->andWhere($qb->expr()->orX(
+ $qb->expr()->eq('configkey', $qb->createNamedParameter('background')),
+ $qb->expr()->eq('configkey', $qb->createNamedParameter('backgroundVersion'))
+ ));
$qb->executeStatement();
}