Added expire option to dashboard snapshots, #1623

This commit is contained in:
Torkel Ödegaard
2015-03-26 12:00:52 +01:00
parent 722d74a41b
commit b1f85dc8f1
12 changed files with 86 additions and 65 deletions
@@ -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"}}))
}