Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-migrate should only run migrations included in the current version #294

Open
kkajla12 opened this issue Feb 1, 2024 · 0 comments
Open

Comments

@kkajla12
Copy link
Member

kkajla12 commented Feb 1, 2024

Describe the bug
Currently, if using an older version of warrant, the auto-migrate will attempt to apply migrations from main which includes migrations that are not part of the running version.

To Reproduce
Steps to reproduce the behavior:

  1. Run an old version of warrant (e.g. v1.0.1)
  2. Upon startup, auto-migrate will run all migrations on main and cause the service to crash.

Expected behavior
The auto-migrate feature should fetch migrations from the relevant release/version rather than using the migrations on main.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant