Successfully displayed userdId in UI

This commit is contained in:
utkarshcmu
2015-12-18 01:52:05 -08:00
parent 22fd2aed02
commit af371249f9
5 changed files with 12 additions and 32 deletions
@@ -93,13 +93,8 @@ func addDashboardMigration(mg *Migrator) {
Postgres("SELECT 0;").
Mysql("ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"))
// add column to store creator of a dashboard
mg.AddMigration("Add column created_by in dashboard - v2", NewAddColumnMigration(dashboardV2, &Column{
Name: "created_by", Type: DB_NVarchar, Length: 255, Nullable: false, Default: "Anonymous",
}))
// add column to store updater of a dashboard
mg.AddMigration("Add column updated_by in dashboard - v2", NewAddColumnMigration(dashboardV2, &Column{
Name: "updated_by", Type: DB_NVarchar, Length: 255, Nullable: false, Default: "Anonymous",
Name: "updated_by", Type: DB_Int, Nullable: true,
}))
}
@@ -54,5 +54,4 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
Sqlite("SELECT 0 WHERE 0;").
Postgres("SELECT 0;").
Mysql("ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"))
}