diff options
author | Joas Schilling <coding@schilljs.com> | 2021-11-04 12:13:18 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:19:50 +0100 |
commit | 9a1df9ddca45a2d20bc748b18a986166e2fa809c (patch) | |
tree | 2b54d7d52971fdf321ea27143e6a1078d83f88a9 /apps/user_ldap/lib/Migration | |
parent | 31a503b387aea7d47f1e071dc16a9bf757e4cbb3 (diff) | |
download | nextcloud-server-9a1df9ddca45a2d20bc748b18a986166e2fa809c.tar.gz nextcloud-server-9a1df9ddca45a2d20bc748b18a986166e2fa809c.zip |
Fix variable names
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap/lib/Migration')
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | 4 |
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 1d8ec577b9c..dbf53cf66b5 100644 --- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php +++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php @@ -57,7 +57,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep { $column->setLength(4096); $changeSchema = true; } - if ($table === 'ldap_user_mapping') { + if ($tableName === 'ldap_user_mapping') { if ($table->hasIndex('ldap_dn_users')) { $table->dropIndex('ldap_dn_users'); $changeSchema = true; @@ -132,7 +132,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep { protected function getUpdateQuery(string $table): IQueryBuilder { $q = $this->dbc->getQueryBuilder(); $q->update($table) - ->set('ldap_dn_hash', $query->createParameter('dn_hash')) + ->set('ldap_dn_hash', $q->createParameter('dn_hash')) ->where($q->expr()->eq('owncloud_name', $q->createParameter('name'))); return $q; } |