LDAP: on upgrade update user cols in database only when necessary

This commit is contained in:
Arthur Schiwon 2012-08-30 15:03:02 +02:00
parent 2440e500b8
commit 1a6f34865c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -1 +1 @@
0.2.0.28
0.2.0.30