[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>
pull/95365/head
grafana-delivery-bot[bot] 9 months ago committed by GitHub
parent c5d7a954ef
commit 86deb2b4c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      pkg/services/sqlstore/migrations/externalsession/migrations.go

@ -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);"))
}

Loading…
Cancel
Save