Added columns in dashboard_snapshot

This commit is contained in:
utkarshcmu
2015-12-07 04:24:29 -08:00
parent 42d1205260
commit 79d0f47ee7
@@ -54,4 +54,15 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
Sqlite("SELECT 0 WHERE 0;").
Postgres("SELECT 0;").
Mysql("ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"))
// add column to store creator of a dashboard snapshot
mg.AddMigration("Add column created_by in dashboard_snapshot", NewAddColumnMigration(snapshotV5, &Column{
Name: "created_by", Type: DB_BigInt, Nullable: true,
}))
// add column to store updater of a dashboard snapshot
mg.AddMigration("Add column updated_by in dashboard_snapshot", NewAddColumnMigration(snapshotV5, &Column{
Name: "updated_by", Type: DB_BigInt, Nullable: true,
}))
}