diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-23 00:18:43 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-23 00:18:43 +0200 |
commit | 78a1b987bb9c33aa5de8c4988d663b28304ef1b2 (patch) | |
tree | 1e2616ef8cf9641a682e9e4bf7b83625f0e3a643 | |
parent | 65619af05b9625ee9c0a6c38bffe5da14c1c90bd (diff) | |
download | nextcloud-server-78a1b987bb9c33aa5de8c4988d663b28304ef1b2.tar.gz nextcloud-server-78a1b987bb9c33aa5de8c4988d663b28304ef1b2.zip |
LDAP: fix db update for Postgres
-rw-r--r-- | apps/user_ldap/appinfo/database.xml | 2 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/update.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/appinfo/database.xml b/apps/user_ldap/appinfo/database.xml index a785bbf4221..812e450dde7 100644 --- a/apps/user_ldap/appinfo/database.xml +++ b/apps/user_ldap/appinfo/database.xml @@ -130,7 +130,7 @@ </field> <index> - <name>ldap_group_members</name> + <name>ldap_group_members_index</name> <unique>true</unique> <field> <name>owncloudname</name> diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php index f23285a0dc6..e6e25cec734 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` WHERE `directory_uuid` = ""'; + $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); |