aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-09-02 10:46:24 +0200
committerGitHub <noreply@github.com>2024-09-02 10:46:24 +0200
commit7f0d0cf03c4200e563baf094f6a88a88057b9bf7 (patch)
treee7173bc4be22948a699f025ab360e1a5ff76ffc4 /lib/private/DB
parent3973a8f722c4acf5da82a611ee50f04e19627727 (diff)
parentc3fa25a16efcffac2c166fc88807e2db861597fe (diff)
downloadnextcloud-server-7f0d0cf03c4200e563baf094f6a88a88057b9bf7.tar.gz
nextcloud-server-7f0d0cf03c4200e563baf094f6a88a88057b9bf7.zip
Merge pull request #47640 from nextcloud/fix/migrator-replica
fix: Run migration sql as statement so that the primary db node is used
Diffstat (limited to 'lib/private/DB')
-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 4fd457b4bc6..40f8ad9676a 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -139,7 +139,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();