aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-08-30 15:45:50 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-09 09:39:01 +0000
commitccc27dc28b7e3f4bbb257d5d0066fe1d5603d525 (patch)
treebcf282697fc2a1ebfcfdc4b801eb1948dc01d6c3 /lib
parent789ccf8798625b56a7bf8194052041425776e8a5 (diff)
downloadnextcloud-server-ccc27dc28b7e3f4bbb257d5d0066fe1d5603d525.tar.gz
nextcloud-server-ccc27dc28b7e3f4bbb257d5d0066fe1d5603d525.zip
fix: Run migration sql as statement so that the primary db node is usedbackport/47640/stable29
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/Migrator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index ba3203a34d6..b678a5ecdb4 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -159,7 +159,7 @@ class Migrator {
$step = 0;
foreach ($sqls as $sql) {
$this->emit($sql, $step++, count($sqls));
- $connection->executeQuery($sql);
+ $connection->executeStatement($sql);
}
if (!$connection->getDatabasePlatform() instanceof MySQLPlatform) {
$connection->commit();