Skip to content

Commit

Permalink
Merge pull request #40651 from nextcloud/refactor/dbal-connection-que…
Browse files Browse the repository at this point in the history
…ry-execute-query

refactor: Use DBAL's executeQuery instead of query (deprecated)
  • Loading branch information
nickvergessen authored Sep 27, 2023
2 parents 69a0509 + 6b90ab1 commit f934d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private/DB/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected function applySchema(Schema $targetSchema, Connection $connection = nu
$step = 0;
foreach ($sqls as $sql) {
$this->emit($sql, $step++, count($sqls));
$connection->query($sql);
$connection->executeQuery($sql);
}
if (!$connection->getDatabasePlatform() instanceof MySQLPlatform) {
$connection->commit();
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Repair/SqliteAutoincrement.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function run(IOutput $out) {

$this->connection->beginTransaction();
foreach ($schemaDiff->toSql($this->connection->getDatabasePlatform()) as $sql) {
$this->connection->query($sql);
$this->connection->executeQuery($sql);
}
$this->connection->commit();
}
Expand Down

0 comments on commit f934d23

Please sign in to comment.