Also ldap_group_links where provider='ldap'

This commit is contained in:
Jacob Vosmaer 2015-04-13 11:56:35 +02:00
parent 8476d171cc
commit afa47eddcc

View file

@ -23,7 +23,7 @@ class FixIdentities < ActiveRecord::Migration
execute "UPDATE identities SET provider = '#{new_provider}' WHERE provider = 'ldap';" execute "UPDATE identities SET provider = '#{new_provider}' WHERE provider = 'ldap';"
if table_exists?('ldap_group_links') 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
end end