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();