Added expire option to dashboard snapshots, #1623
This commit is contained in:
@@ -21,4 +21,10 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
|
||||
|
||||
mg.AddMigration("create dashboard_snapshot table v4", NewAddTableMigration(snapshotV4))
|
||||
addTableIndicesMigrations(mg, "v4", snapshotV4)
|
||||
|
||||
mg.AddMigration("add org_id to dashboard_snapshot", new(AddColumnMigration).
|
||||
Table("dashboard_snapshot").Column(&Column{Name: "org_id", Type: DB_BigInt, Nullable: true}))
|
||||
|
||||
mg.AddMigration("add index org_id to dashboard_snapshot",
|
||||
NewAddIndexMigration(snapshotV4, &Index{Cols: []string{"org_id"}}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user