increase blob column size for encrypted dashboard data (#28831)

This commit is contained in:
Will Browne 2020-11-04 18:41:05 +01:00 committed by GitHub
parent 2b7a570273
commit 65554269ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,4 +68,7 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
mg.AddMigration("Add encrypted dashboard json column", NewAddColumnMigration(snapshotV5, &Column{ mg.AddMigration("Add encrypted dashboard json column", NewAddColumnMigration(snapshotV5, &Column{
Name: "dashboard_encrypted", Type: DB_Blob, Nullable: true, Name: "dashboard_encrypted", Type: DB_Blob, Nullable: true,
})) }))
mg.AddMigration("Change dashboard_encrypted column to MEDIUMBLOB", NewRawSqlMigration("").
Mysql("ALTER TABLE dashboard_snapshot MODIFY dashboard_encrypted MEDIUMBLOB;"))
} }