diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-08-30 15:45:50 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-08-30 15:45:50 +0200 |
commit | c3fa25a16efcffac2c166fc88807e2db861597fe (patch) | |
tree | 2f04e2c6ab454d80c11de3ad7db2efba8c313cdc /lib/private/DB | |
parent | e44f24f7abb92b1d580b211cf9857eb99a0cb0f9 (diff) | |
download | nextcloud-server-c3fa25a16efcffac2c166fc88807e2db861597fe.tar.gz nextcloud-server-c3fa25a16efcffac2c166fc88807e2db861597fe.zip |
fix: Run migration sql as statement so that the primary db node is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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(); |