Redo migration bugfix

pull/36/head
Bharani 2017-05-04 20:36:11 +05:30
parent d5d23928d9
commit eea165e5d3
1 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,7 @@ func Redo(db *sql.DB, dir string) error {
return err
}
previous, err := migrations.Next(currentVersion)
if err != nil {
return err
}
if err := previous.Up(db); err != nil {
if err := current.Down(db); err != nil {
return err
}