summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-04-13 11:56:35 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-04-13 11:56:35 +0200
commitafa47eddccc45ed9cfcd70891d4013c9f8d04d25 (patch)
treea61a7a4c9cbf5ed3ffb1c21fdd9becf84e3472b0
parent8476d171cc0fd3ab7d01c078afea29ad434178c7 (diff)
downloadgitlab-ce-afa47eddccc45ed9cfcd70891d4013c9f8d04d25.tar.gz
Also ldap_group_links where provider='ldap'
-rw-r--r--db/migrate/20150411000035_fix_identities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20150411000035_fix_identities.rb b/db/migrate/20150411000035_fix_identities.rb
index d4c6e545204..8f11a96ab01 100644
--- a/db/migrate/20150411000035_fix_identities.rb
+++ b/db/migrate/20150411000035_fix_identities.rb
@@ -23,7 +23,7 @@ class FixIdentities < ActiveRecord::Migration
execute "UPDATE identities SET provider = '#{new_provider}' WHERE provider = 'ldap';"
if table_exists?('ldap_group_links')
- execute "UPDATE ldap_group_links SET provider = '#{new_provider}' WHERE provider IS NULL;"
+ execute "UPDATE ldap_group_links SET provider = '#{new_provider}' WHERE provider IS NULL OR provider = 'ldap';"
end
end