From eea165e5d3f036106d386d7a8366d0f7040cd64a Mon Sep 17 00:00:00 2001 From: Bharani Date: Thu, 4 May 2017 20:36:11 +0530 Subject: [PATCH] Redo migration bugfix --- redo.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/redo.go b/redo.go index 183c88f..2ec7a32 100644 --- a/redo.go +++ b/redo.go @@ -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 }