Commit 2c10f29b by Daniel Lee Committed by GitHub

Merge pull request #11784 from grafana/11754_auth_migration

increase length of auth_id column in user_auth table
parents 7db9cc3b 3d9b7a58
...@@ -21,4 +21,9 @@ func addUserAuthMigrations(mg *Migrator) { ...@@ -21,4 +21,9 @@ func addUserAuthMigrations(mg *Migrator) {
mg.AddMigration("create user auth table", NewAddTableMigration(userAuthV1)) mg.AddMigration("create user auth table", NewAddTableMigration(userAuthV1))
// add indices // add indices
addTableIndicesMigrations(mg, "v1", userAuthV1) addTableIndicesMigrations(mg, "v1", userAuthV1)
mg.AddMigration("alter user_auth.auth_id to length 255", new(RawSqlMigration).
Sqlite("SELECT 0 WHERE 0;").
Postgres("ALTER TABLE user_auth ALTER COLUMN auth_id TYPE VARCHAR(255);").
Mysql("ALTER TABLE user_auth MODIFY auth_id VARCHAR(255);"))
} }
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