mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 18:33:46 -04:00
fix: Run migration sql as statement so that the primary db node is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
e44f24f7ab
commit
c3fa25a16e
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