Fixed sql integration test

This commit is contained in:
Torkel Ödegaard
2015-02-23 20:48:43 +01:00
parent 26e4809e2e
commit da41d99aa7
3 changed files with 49 additions and 31 deletions
+18
View File
@@ -129,3 +129,21 @@ func (m *AddTableMigration) WithColumn(col *Column) *AddTableMigration {
}
return m
}
type RenameColumnMigration struct {
MigrationBase
tableName string
oldName string
newName string
}
func (m *RenameColumnMigration) Table(tableName string) *RenameColumnMigration {
m.tableName = tableName
return m
}
func (m *RenameColumnMigration) Rename(oldName string, newName string) *RenameColumnMigration {
m.oldName = oldName
m.newName = newName
return m
}