Skip to content

Commit 79d0f47

Browse files
committed
Added columns in dashboard_snapshot
1 parent 42d1205 commit 79d0f47

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,15 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
5454
Sqlite("SELECT 0 WHERE 0;").
5555
Postgres("SELECT 0;").
5656
Mysql("ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"))
57+
58+
// add column to store creator of a dashboard snapshot
59+
mg.AddMigration("Add column created_by in dashboard_snapshot", NewAddColumnMigration(snapshotV5, &Column{
60+
Name: "created_by", Type: DB_BigInt, Nullable: true,
61+
}))
62+
63+
// add column to store updater of a dashboard snapshot
64+
mg.AddMigration("Add column updated_by in dashboard_snapshot", NewAddColumnMigration(snapshotV5, &Column{
65+
Name: "updated_by", Type: DB_BigInt, Nullable: true,
66+
}))
67+
5768
}

0 commit comments

Comments
 (0)