diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-09-27 14:40:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 14:40:15 +0200 |
commit | f934d23cf2a1b5446f38c8569fef5b1346130daf (patch) | |
tree | 40866481e8a49356f0db3171b49f45b76ca5987d | |
parent | 69a050991bd580c0fef0c10a27fcadae701a9338 (diff) | |
parent | 6b90ab19530a72e88b6facc10078245a2ea2d0d8 (diff) | |
download | nextcloud-server-f934d23cf2a1b5446f38c8569fef5b1346130daf.tar.gz nextcloud-server-f934d23cf2a1b5446f38c8569fef5b1346130daf.zip |
Merge pull request #40651 from nextcloud/refactor/dbal-connection-query-execute-query
refactor: Use DBAL's executeQuery instead of query (deprecated)
-rw-r--r-- | lib/private/DB/Migrator.php | 2 | ||||
-rw-r--r-- | lib/private/Repair/SqliteAutoincrement.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php index 74e5a285351..46be512440a 100644 --- a/lib/private/DB/Migrator.php +++ b/lib/private/DB/Migrator.php @@ -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(); diff --git a/lib/private/Repair/SqliteAutoincrement.php b/lib/private/Repair/SqliteAutoincrement.php index 4a8b2a45d3f..1199370f221 100644 --- a/lib/private/Repair/SqliteAutoincrement.php +++ b/lib/private/Repair/SqliteAutoincrement.php @@ -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(); } |