fix: Run migration sql as statement so that the primary db node is used

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/47640/head
Julius Härtl 2024-08-30 15:45:50 +07:00
parent e44f24f7ab
commit c3fa25a16e
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
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();