summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-10-04 19:58:45 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-10-04 19:58:45 +0200
commit670a2d57e3e84f2b20ac63d0613d05b41c3fe78a (patch)
treec13e7a7e95222e4b79e34c66dccd7e1e08f3a0f7 /apps/user_ldap
parentf82c4d31ba50f42f142150a9121cdd67df192ac6 (diff)
downloadnextcloud-server-670a2d57e3e84f2b20ac63d0613d05b41c3fe78a.tar.gz
nextcloud-server-670a2d57e3e84f2b20ac63d0613d05b41c3fe78a.zip
executeQuery and executeStatement are 22+
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Migration/Version1120Date20210917155206.php4
1 files changed, 2 insertions, 2 deletions
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);