From ccc27dc28b7e3f4bbb257d5d0066fe1d5603d525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 30 Aug 2024 15:45:50 +0200 Subject: [PATCH] fix: Run migration sql as statement so that the primary db node is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/DB/Migrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php index ba3203a34d606..b678a5ecdb4f2 100644 --- a/lib/private/DB/Migrator.php +++ b/lib/private/DB/Migrator.php @@ -159,7 +159,7 @@ protected function applySchema(Schema $targetSchema, ?Connection $connection = n $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();