-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to make migration task fail for missing migrations? #32
Comments
Not that I know of. Do you have a test migration (preferably for H2) that I can use? |
Working with a single migration, with the option In file
Running the migration works without issue. However, if I delete the migration file after it has been run and try to run the migrations again, I only receive a warning and the migration task passes without error. Researching this issue; it appears that the flyway option |
Thanks! I'll make a test case and dig in to it. |
I have refactored the logic for setting migration parameters. Seems that |
I'm trying to have flyway/sbt produce an error (rather than a warning) when migrations are missing, but I haven't been able to find any options that would present this behavior. Specifically, I would like sbt to exit with a non-zero exit status if a migration is missing - the same behavior as when a migration has been modified after apply.
Is there some setting/configuration that I can change to do this?
The text was updated successfully, but these errors were encountered: