Commit 42d12052 by utkarshcmu

Fixed gofmt checks

parent 3d903404
...@@ -93,13 +93,13 @@ func addDashboardMigration(mg *Migrator) { ...@@ -93,13 +93,13 @@ func addDashboardMigration(mg *Migrator) {
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 // add column to store creator of a dashboard
mg.AddMigration("Add column created_by", NewAddColumnMigration(dashboardV2, &Column{ mg.AddMigration("Add column created_by", NewAddColumnMigration(dashboardV2, &Column{
Name: "created_by", Type: DB_BigInt, Nullable: true, Name: "created_by", Type: DB_BigInt, Nullable: true,
})) }))
// add column to store updater of a dashboard // add column to store updater of a dashboard
mg.AddMigration("Add column updated_by", NewAddColumnMigration(dashboardV2, &Column{ mg.AddMigration("Add column updated_by", NewAddColumnMigration(dashboardV2, &Column{
Name: "updated_by", Type: DB_BigInt, Nullable: true, Name: "updated_by", Type: DB_BigInt, Nullable: true,
})) }))
} }
...@@ -65,7 +65,7 @@ type AddColumnMigration struct { ...@@ -65,7 +65,7 @@ type AddColumnMigration struct {
} }
func NewAddColumnMigration(table Table, col *Column) *AddColumnMigration { func NewAddColumnMigration(table Table, col *Column) *AddColumnMigration {
return &AddColumnMigration{tableName: table.Name, column: col} return &AddColumnMigration{tableName: table.Name, column: col}
} }
func (m *AddColumnMigration) Table(tableName string) *AddColumnMigration { func (m *AddColumnMigration) Table(tableName string) *AddColumnMigration {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment