Also ldap_group_links where provider='ldap'
This commit is contained in:
parent
8476d171cc
commit
afa47eddcc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue