diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-09-02 10:46:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 10:46:24 +0200 |
commit | 7f0d0cf03c4200e563baf094f6a88a88057b9bf7 (patch) | |
tree | e7173bc4be22948a699f025ab360e1a5ff76ffc4 /lib/private/DB | |
parent | 3973a8f722c4acf5da82a611ee50f04e19627727 (diff) | |
parent | c3fa25a16efcffac2c166fc88807e2db861597fe (diff) | |
download | nextcloud-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.php | 2 |
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(); |