mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
Corrected SQL migration for snapshot table column type change, #1880
This commit is contained in:
parent
4eeaa6bf9d
commit
e410fbb558
@ -49,4 +49,9 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
|
||||
mg.AddMigration("create dashboard_snapshot table v5 #2", NewAddTableMigration(snapshotV5))
|
||||
addTableIndicesMigrations(mg, "v5", snapshotV5)
|
||||
|
||||
// change column type of dashboard
|
||||
mg.AddMigration("alter dashboard_snapshot to mediumtext v2", new(RawSqlMigration).
|
||||
Sqlite("SELECT 0 WHERE 0;").
|
||||
Postgres("SELECT 0;").
|
||||
Mysql("ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user