mirror of https://github.com/pressly/goose.git
Fixes error on successful up
parent
cb330a2e11
commit
42766096ee
1
up.go
1
up.go
|
@ -21,6 +21,7 @@ func Up(db *sql.DB, dir string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == ErrNoNextVersion {
|
if err == ErrNoNextVersion {
|
||||||
fmt.Printf("goose: no migrations to run. current version: %d\n", current)
|
fmt.Printf("goose: no migrations to run. current version: %d\n", current)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue