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(); }