LDAP: on upgrade update user cols in database only when necessary
This commit is contained in:
parent
2440e500b8
commit
1a6f34865c
|
@ -34,7 +34,7 @@ $groupBE = new \OCA\user_ldap\GROUP_LDAP();
|
|||
$groupBE->setConnector($connector);
|
||||
|
||||
foreach($objects as $object) {
|
||||
$fetchDNSql = 'SELECT `ldap_dn`, `owncloud_name` FROM `*PREFIX*ldap_'.$object.'_mapping`';
|
||||
$fetchDNSql = 'SELECT `ldap_dn`, `owncloud_name` FROM `*PREFIX*ldap_'.$object.'_mapping` WHERE `directory_uuid` = ""';
|
||||
$updateSql = 'UPDATE `*PREFIX*ldap_'.$object.'_mapping` SET `ldap_DN` = ?, `directory_uuid` = ? WHERE `ldap_dn` = ?';
|
||||
|
||||
$query = OCP\DB::prepare($fetchDNSql);
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.2.0.28
|
||||
0.2.0.30
|
Loading…
Reference in New Issue