diff --git a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php index d46107733dc5c..94db4e72c696a 100644 --- a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php +++ b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php @@ -73,7 +73,7 @@ protected function handleIDs(string $table, bool $emitHooks) { $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 @@ protected function handleIDs(string $table, bool $emitHooks) { $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);