diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-04-13 11:56:35 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-04-13 11:56:35 +0200 |
commit | afa47eddccc45ed9cfcd70891d4013c9f8d04d25 (patch) | |
tree | a61a7a4c9cbf5ed3ffb1c21fdd9becf84e3472b0 /db | |
parent | 8476d171cc0fd3ab7d01c078afea29ad434178c7 (diff) | |
download | gitlab-ce-afa47eddccc45ed9cfcd70891d4013c9f8d04d25.tar.gz |
Also ldap_group_links where provider='ldap'
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150411000035_fix_identities.rb | 2 |
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 |