diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-09-10 16:19:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 16:19:32 +0200 |
commit | 5017d5000e550285ad7b471ba05fa53bd7ad0ef0 (patch) | |
tree | bc13b8f0d39ac0f4f1f00c660930ffec8984e8b9 /lib | |
parent | 0d31f181d2ad01f9b31dce168df5dfb327f8c12a (diff) | |
parent | 332b7a43a43f66a8d29bfa7a37e9c2ba2a45787e (diff) | |
download | nextcloud-server-5017d5000e550285ad7b471ba05fa53bd7ad0ef0.tar.gz nextcloud-server-5017d5000e550285ad7b471ba05fa53bd7ad0ef0.zip |
Merge pull request #47839 from nextcloud/backport/47640/stable30
[stable30] fix: Run migration sql as statement so that the primary db node is used
Diffstat (limited to 'lib')
-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(); |