diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-08-30 15:03:02 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-08-30 15:03:02 +0200 |
commit | 1a6f34865c7312e01fa20bf689ed70b9e723f7b3 (patch) | |
tree | 99354da09f514a197f9f4ff1e3b34a0062322168 /apps/user_ldap/appinfo/update.php | |
parent | 2440e500b854268beb320147f64c468b20eacbc4 (diff) | |
download | nextcloud-server-1a6f34865c7312e01fa20bf689ed70b9e723f7b3.tar.gz nextcloud-server-1a6f34865c7312e01fa20bf689ed70b9e723f7b3.zip |
LDAP: on upgrade update user cols in database only when necessary
Diffstat (limited to 'apps/user_ldap/appinfo/update.php')
-rw-r--r-- | apps/user_ldap/appinfo/update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php index a05293f2288..da36211b665 100644 --- a/apps/user_ldap/appinfo/update.php +++ b/apps/user_ldap/appinfo/update.php @@ -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); |