Adding snapshot storage and route, #1623
This commit is contained in:
@@ -3,7 +3,7 @@ package migrations
|
||||
import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
||||
|
||||
func addDashboardSnapshotMigrations(mg *Migrator) {
|
||||
snapshotV3 := Table{
|
||||
snapshotV4 := Table{
|
||||
Name: "dashboard_snapshot",
|
||||
Columns: []*Column{
|
||||
{Name: "id", Type: DB_BigInt, IsPrimaryKey: true, IsAutoIncrement: true},
|
||||
@@ -19,6 +19,6 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
|
||||
},
|
||||
}
|
||||
|
||||
mg.AddMigration("create dashboard_snapshot table v3", NewAddTableMigration(snapshotV3))
|
||||
addTableIndicesMigrations(mg, "v3", snapshotV3)
|
||||
mg.AddMigration("create dashboard_snapshot table v4", NewAddTableMigration(snapshotV4))
|
||||
addTableIndicesMigrations(mg, "v4", snapshotV4)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user