mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Actually call the DedupOrgInLogin migration (#94520)
This commit is contained in:
parent
419598c745
commit
6dbd324ef9
@ -158,6 +158,9 @@ func addUserMigrations(mg *Migrator) {
|
||||
// Service accounts login were not unique per org. this migration is part of making it unique per org
|
||||
// to be able to create service accounts that are unique per org
|
||||
mg.AddMigration(usermig.AllowSameLoginCrossOrgs, &usermig.ServiceAccountsSameLoginCrossOrgs{})
|
||||
// Before it was fixed, the previous migration introduced the org_id again in logins that already had it.
|
||||
// This migration removes the duplicate org_id from the login.
|
||||
mg.AddMigration(usermig.DedupOrgInLogin, &usermig.ServiceAccountsDeduplicateOrgInLogin{})
|
||||
|
||||
// Users login and email should be in lower case
|
||||
mg.AddMigration(usermig.LowerCaseUserLoginAndEmail, &usermig.UsersLowerCaseLoginAndEmail{})
|
||||
|
@ -16,9 +16,6 @@ const (
|
||||
// to be able to create service accounts that are unique per org
|
||||
func AddServiceAccountsAllowSameLoginCrossOrgs(mg *migrator.Migrator) {
|
||||
mg.AddMigration(AllowSameLoginCrossOrgs, &ServiceAccountsSameLoginCrossOrgs{})
|
||||
// Before it was fixed, the previous migration introduced the org_id again in logins that already had it.
|
||||
// This migration removes the duplicate org_id from the login.
|
||||
mg.AddMigration(DedupOrgInLogin, &ServiceAccountsDeduplicateOrgInLogin{})
|
||||
}
|
||||
|
||||
var _ migrator.CodeMigration = new(ServiceAccountsSameLoginCrossOrgs)
|
||||
|
Loading…
Reference in New Issue
Block a user