Implement rollback command

This commit is contained in:
Adrian Macneil 2015-11-25 12:26:57 -08:00
parent ece5d3cf0e
commit 1c4cf2c122
4 changed files with 138 additions and 25 deletions

View file

@ -14,7 +14,7 @@ type Driver interface {
CreateDatabase(*url.URL) error
DropDatabase(*url.URL) error
CreateMigrationsTable(*sql.DB) error
SelectMigrations(*sql.DB) (map[string]struct{}, error)
SelectMigrations(*sql.DB, int) (map[string]struct{}, error)
InsertMigration(shared.Transaction, string) error
DeleteMigration(shared.Transaction, string) error
}