From 79d0f47ee70ac62c2d7a62a7d84c5277d3ec5b84 Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Mon, 7 Dec 2015 04:24:29 -0800 Subject: [PATCH] Added columns in dashboard_snapshot --- .../sqlstore/migrations/dashboard_snapshot_mig.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go b/pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go index b08cc451e55..26e7cea0a6e 100644 --- a/pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go +++ b/pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go @@ -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, + })) + }