aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-12-14 11:04:37 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-14 11:04:37 +0100
commitf3632cf020a8603ba17e9a2bc381b4e388668686 (patch)
tree34200a08cab7662eee80aa3449cf6aaa94d336ab
parent774636efab2bdfc4e80bd4401bf94dc9a0e27dda (diff)
downloadnextcloud-server-f3632cf020a8603ba17e9a2bc381b4e388668686.tar.gz
nextcloud-server-f3632cf020a8603ba17e9a2bc381b4e388668686.zip
Adapt execute function name for stable21
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/user_ldap/lib/Migration/Version1130Date20211102154716.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
index 82afb4965de..80a6f0650da 100644
--- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
+++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
@@ -128,13 +128,13 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
$select = $this->getSelectQuery($table);
$update = $this->getUpdateQuery($table);
- $result = $select->executeQuery();
+ $result = $select->execute();
while ($row = $result->fetch()) {
$dnHash = hash('sha256', $row['ldap_dn'], false);
$update->setParameter('name', $row['owncloud_name']);
$update->setParameter('dn_hash', $dnHash);
try {
- $update->executeStatement();
+ $update->execute();
} catch (Exception $e) {
$this->logger->error('Failed to add hash "{dnHash}" ("{name}" of {table})',
[