diff --git a/cmd/tools/migratesqldb/cmd/cmd.go b/cmd/tools/migratesqldb/cmd/cmd.go index 7cba761..e99f4ee 100644 --- a/cmd/tools/migratesqldb/cmd/cmd.go +++ b/cmd/tools/migratesqldb/cmd/cmd.go @@ -71,9 +71,10 @@ var ( if err != nil { return fmt.Errorf("when creating the migrator: %w", err) } - if err := migrator.Up(); err != nil { + if err := migrator.Up(); err != nil && !errors.Is(err, migrate.ErrNoChange) { return fmt.Errorf("while applying the migration(s): %w", err) } + return nil }, }