From 2c2c1accb53d44eb1d1d1ebf9c7b7f0ef95003c8 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Fri, 8 Mar 2024 10:58:45 +0100 Subject: [PATCH] Allow up and down migration of database --- internal/repository/migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/migration.go b/internal/repository/migration.go index e71ed66..d7bfe13 100644 --- a/internal/repository/migration.go +++ b/internal/repository/migration.go @@ -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 {