mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #40651 from nextcloud/refactor/dbal-connection-query-execute-query
refactor: Use DBAL's executeQuery instead of query (deprecated)
This commit is contained in:
commit
f934d23cf2
2 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ class Migrator {
|
|||
$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();
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class SqliteAutoincrement implements IRepairStep {
|
|||
|
||||
$this->connection->beginTransaction();
|
||||
foreach ($schemaDiff->toSql($this->connection->getDatabasePlatform()) as $sql) {
|
||||
$this->connection->query($sql);
|
||||
$this->connection->executeQuery($sql);
|
||||
}
|
||||
$this->connection->commit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue