mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Adapt execute function name for stable21
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2b1bb599f1
commit
5a2b7fbc46
1 changed files with 2 additions and 2 deletions
|
|
@ -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})',
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue