executeQuery and executeStatement are 22+

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/29074/head
Daniel Kesselberg 2021-10-04 19:58:45 +07:00
parent f82c4d31ba
commit 670a2d57e3
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 2 additions and 2 deletions

@ -73,7 +73,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep {
$q = $this->getSelectQuery($table);
$u = $this->getUpdateQuery($table);
$r = $q->executeQuery();
$r = $q->execute();
while ($row = $r->fetch()) {
$newId = hash('sha256', $row['owncloud_name'], false);
if ($emitHooks) {
@ -82,7 +82,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep {
$u->setParameter('uuid', $row['directory_uuid']);
$u->setParameter('newId', $newId);
try {
$u->executeStatement();
$u->execute();
if ($emitHooks) {
$this->emitUnassign($row['owncloud_name'], false);
$this->emitAssign($newId);