Treat error no change as non fatal

This commit is contained in:
Jan Eitzinger 2023-02-25 08:26:56 +01:00
parent 252ec3909a
commit 89b1d8f7da

View File

@ -102,8 +102,12 @@ func MigrateDB(backend string, db string) {
}
if err := m.Up(); err != nil {
if err == migrate.ErrNoChange {
log.Info("DB already up to date!")
} else {
log.Fatal(err)
}
}
m.Close()
}