Merge pull request #36 from bharani91/master

Redo migration bugfix
pull/38/head
Vojtech Vitek 2017-05-04 11:45:38 -04:00 committed by GitHub
commit cdb30a7da1
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 return err
} }
previous, err := migrations.Next(currentVersion) if err := current.Down(db); err != nil {
if err != nil {
return err
}
if err := previous.Up(db); err != nil {
return err return err
} }