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:
Misi 2024-10-24 17:14:38 +02:00 committed by GitHub
parent 257aca5340
commit b8b7c7901c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,4 +28,12 @@ func AddMigration(mg *migrator.Migrator) {
}
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);"))
}