From c3fa25a16efcffac2c166fc88807e2db861597fe Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Fri, 30 Aug 2024 15:45:50 +0200 Subject: 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(-) (limited to 'lib/private/DB') 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(); -- cgit v1.2.3