Fixes #2: Don’t log error if db is new.

This commit is contained in:
Matthew Dillon 2014-10-07 20:48:20 -08:00
parent 8fa594e3f0
commit 08ae818d74

View file

@ -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)
}
}