mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #47839 from nextcloud/backport/47640/stable30
[stable30] fix: Run migration sql as statement so that the primary db node is used
This commit is contained in:
commit
5017d5000e
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue