Commit afa47edd authored by Jacob Vosmaer's avatar Jacob Vosmaer

Also ldap_group_links where provider='ldap'

parent 8476d171
...@@ -23,7 +23,7 @@ class FixIdentities < ActiveRecord::Migration ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment