mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Increase name_id and session_id length to 1024 in user_external_session (#95352)
Increase name_id and session_id length to 1024
This commit is contained in:
parent
257aca5340
commit
b8b7c7901c
@ -28,4 +28,12 @@ func AddMigration(mg *migrator.Migrator) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mg.AddMigration("create user_external_session table", migrator.NewAddTableMigration(externalSessionV1))
|
mg.AddMigration("create user_external_session table", migrator.NewAddTableMigration(externalSessionV1))
|
||||||
|
|
||||||
|
mg.AddMigration("increase name_id column length to 1024", migrator.NewRawSQLMigration("").
|
||||||
|
Mysql("ALTER TABLE user_external_session MODIFY name_id NVARCHAR(1024);").
|
||||||
|
Postgres("ALTER TABLE user_external_session ALTER COLUMN name_id TYPE VARCHAR(1024);"))
|
||||||
|
|
||||||
|
mg.AddMigration("increase session_id column length to 1024", migrator.NewRawSQLMigration("").
|
||||||
|
Mysql("ALTER TABLE user_external_session MODIFY session_id NVARCHAR(1024);").
|
||||||
|
Postgres("ALTER TABLE user_external_session ALTER COLUMN session_id TYPE VARCHAR(1024);"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user