Fixes #2: Don’t log error if db is new.
This commit is contained in:
parent
8fa594e3f0
commit
08ae818d74
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ func Drop(path string) {
|
|||
}
|
||||
|
||||
err = migrator.RollbackAll()
|
||||
if err != nil {
|
||||
if err != nil && err != gomigrate.NoActiveMigrations {
|
||||
log.Fatal("Error rolling back migrations: ", err)
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue