Allow up and down migration of database

This commit is contained in:
Jan Eitzinger 2024-03-08 10:58:45 +01:00
parent 105b7eabf0
commit 2c2c1accb5

View File

@ -114,7 +114,7 @@ func MigrateDB(backend string, db string) error {
return err
}
if err := m.Up(); err != nil {
if err := m.Migrate(Version); err != nil {
if err == migrate.ErrNoChange {
log.Info("DB already up to date!")
} else {