From 670a2d57e3e84f2b20ac63d0613d05b41c3fe78a Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 4 Oct 2021 19:58:45 +0200 Subject: executeQuery and executeStatement are 22+ Signed-off-by: Daniel Kesselberg --- apps/user_ldap/lib/Migration/Version1120Date20210917155206.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php index d46107733dc..94db4e72c69 100644 --- a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php +++ b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php @@ -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); -- cgit v1.2.3