[v11.3.x] Auth: Increase name_id and session_id length to 1024 in user_external_session (#95360)
Auth: Increase name_id and session_id length to 1024 in user_external_session (#95352)
Increase name_id and session_id length to 1024
(cherry picked from commit b8b7c7901c)
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
co-authored by
Misi
parent
c5d7a954ef
commit
86deb2b4c4
@@ -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);"))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user