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,7 +102,11 @@ func MigrateDB(backend string, db string) {
} }
if err := m.Up(); err != nil { if err := m.Up(); err != nil {
log.Fatal(err) if err == migrate.ErrNoChange {
log.Info("DB already up to date!")
} else {
log.Fatal(err)
}
} }
m.Close() m.Close()