diff --git a/lib/Migration/RepairProviderRegistrations.php b/lib/Migration/RepairProviderRegistrations.php index de698b18..2ad63aef 100644 --- a/lib/Migration/RepairProviderRegistrations.php +++ b/lib/Migration/RepairProviderRegistrations.php @@ -52,7 +52,7 @@ public function run(IOutput $output): void { $deleteQb->expr()->eq('uid', $deleteQb->createParameter('uid')), ); - $result = $selectQb->execute(); + $result = $selectQb->executeQuery(); while ($row = $result->fetch()) { try { $updateQb->setParameter('uid', $row['uid']); @@ -62,7 +62,7 @@ public function run(IOutput $output): void { if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) { // The provider was registered twice for the user. We can safely drop the old one. $deleteQb->setParameter('uid', $row['uid']); - $deleteQb->execute(); + $deleteQb->executeStatement(); } else { $output->warning(sprintf( '%s Could not migrate %s:%s', diff --git a/lib/Migration/Version000202Date20200320192700.php b/lib/Migration/Version000202Date20200320192700.php index d56cd2a0..b1e27637 100644 --- a/lib/Migration/Version000202Date20200320192700.php +++ b/lib/Migration/Version000202Date20200320192700.php @@ -54,11 +54,11 @@ public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $ $this->connection->beginTransaction(); try { - $result = $select->execute(); + $result = $select->executeQuery(); while ($row = $result->fetch()) { $update->setParameter('aaguid', $this->getBytes($output, $row)); $update->setParameter('id', $row['id']); - $update->execute(); + $update->executeStatement(); } $result->closeCursor(); $this->connection->commit(); diff --git a/lib/Migration/Version000203Date20200322200200.php b/lib/Migration/Version000203Date20200322200200.php index 535f93e9..bf651e73 100644 --- a/lib/Migration/Version000203Date20200322200200.php +++ b/lib/Migration/Version000203Date20200322200200.php @@ -74,11 +74,11 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $this->connection->beginTransaction(); try { - $result = $select->execute(); + $result = $select->executeQuery(); while ($row = $result->fetch()) { $update->setParameter('aaguid_transform', $this->getUuidString($output, $row)); $update->setParameter('id', $row['id']); - $update->execute(); + $update->executeStatement(); } $result->closeCursor(); $this->connection->commit(); diff --git a/lib/Migration/Version000203Date20200322201700.php b/lib/Migration/Version000203Date20200322201700.php index 8e279bf9..6ab95ce1 100644 --- a/lib/Migration/Version000203Date20200322201700.php +++ b/lib/Migration/Version000203Date20200322201700.php @@ -72,11 +72,11 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $this->connection->beginTransaction(); try { - $result = $select->execute(); + $result = $select->executeQuery(); while ($row = $result->fetch()) { $update->setParameter('aaguid', Uuid::fromString($row['aaguid_transform'])->toRfc4122()); $update->setParameter('id', $row['id']); - $update->execute(); + $update->executeStatement(); } $result->closeCursor(); $this->connection->commit(); diff --git a/lib/Migration/Version000400Date20220524123120.php b/lib/Migration/Version000400Date20220524123120.php index 5514e81f..b6acd9b1 100644 --- a/lib/Migration/Version000400Date20220524123120.php +++ b/lib/Migration/Version000400Date20220524123120.php @@ -129,7 +129,7 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $selectQb->select('*') ->from('twofactor_webauthn_registrations'); - $result = $selectQb->execute(); + $result = $selectQb->executeQuery(); while ($row = $result->fetch()) { $insertQb ->setParameter('name', $row['name']) @@ -143,7 +143,7 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array ->setParameter('user_handle', $row['user_handle']) ->setParameter('counter', (int)$row['counter'], IQueryBuilder::PARAM_INT) ->setParameter('active', (bool)$row['active'], IQueryBuilder::PARAM_BOOL); - $insertQb->execute(); + $insertQb->executeStatement(); } $result->closeCursor(); }