Skip to content

Commit

Permalink
User: add second migration for lowercasing login/email of users (graf…
Browse files Browse the repository at this point in the history
  • Loading branch information
eleijonmarck authored Jun 7, 2024
1 parent 0e73c4d commit 39bd13f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/services/sqlstore/migrations/user_mig.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func addUserMigrations(mg *Migrator) {

// Users login and email should be in lower case
mg.AddMigration(usermig.LowerCaseUserLoginAndEmail, &usermig.UsersLowerCaseLoginAndEmail{})
// Users login and email should be in lower case - 2, fix for creating users not lowering login and email
mg.AddMigration(usermig.LowerCaseUserLoginAndEmail+"2", &usermig.UsersLowerCaseLoginAndEmail{})
}

const migSQLITEisServiceAccountNullable = `ALTER TABLE user ADD COLUMN tmp_service_account BOOLEAN DEFAULT 0;
Expand Down

0 comments on commit 39bd13f

Please sign in to comment.