-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
validateOnMigrate is true by default #695
Comments
Set validateOnMigrate to true and you should be good to go. I'll look into improving the documentation for this on the website. |
Awesome! Many thanks. In the spirit of fail-fast, is there a reason that this property isnt set by default? Nick On Tue, Feb 11, 2014 at 11:40 AM, Axel Fontaine notifications@github.comwrote:
|
As of Flyway 3.0, validateOnMigrate is now true by default. |
where to set the property false please explain |
We just had a case where additional SQL was added to an already applied SQL change file. On databases that already had the SQL change file applied, Flyway ignored the new additions since as far as it was concerned, the changeset had been applied. However, this led to problems since developers working off fresh DB copies got the new changeset (as did all unit tests that leverage in-memory DBs like H2), pushed changes to prod, and ended up with an inconsistent DB.
Could Flyway also check that the provided SQL files had not been modified since they were applied, and if so report an error (fail fast, rather than ignore the changeset) if this is the case?
The text was updated successfully, but these errors were encountered: