refactor: Use DBAL's executeQuery instead of query (deprecated)

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-09-27 10:43:42 +02:00
부모 f134244c90
커밋 6b90ab1953
No known key found for this signature in database
GPG 키 ID: CC42AC2A7F0E56D8
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

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