|
@@ -92,4 +92,14 @@ func addDashboardMigration(mg *Migrator) {
|
|
|
Sqlite("SELECT 0 WHERE 0;").
|
|
Sqlite("SELECT 0 WHERE 0;").
|
|
|
Postgres("SELECT 0;").
|
|
Postgres("SELECT 0;").
|
|
|
Mysql("ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"))
|
|
Mysql("ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"))
|
|
|
|
|
+
|
|
|
|
|
+ // add column to store creator of a dashboard
|
|
|
|
|
+ mg.AddMigration("Add column created_by", NewAddColumnMigration(dashboardV2, &Column{
|
|
|
|
|
+ Name: "created_by", Type: DB_BigInt, Nullable: true,
|
|
|
|
|
+ }))
|
|
|
|
|
+
|
|
|
|
|
+ // add column to store updater of a dashboard
|
|
|
|
|
+ mg.AddMigration("Add column updated_by", NewAddColumnMigration(dashboardV2, &Column{
|
|
|
|
|
+ Name: "updated_by", Type: DB_BigInt, Nullable: true,
|
|
|
|
|
+ }))
|
|
|
}
|
|
}
|