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

validateOnMigrate is true by default #695

Closed
vertex-github opened this issue Feb 10, 2014 · 4 comments
Closed

validateOnMigrate is true by default #695

vertex-github opened this issue Feb 10, 2014 · 4 comments
Milestone

Comments

@vertex-github
Copy link

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?

@axelfontaine
Copy link
Contributor

Set validateOnMigrate to true and you should be good to go.

I'll look into improving the documentation for this on the website.

@vertex-github
Copy link
Author

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:

Set validateOnMigrate to true and you should be good to go.

I'll look into improving the documentation for this on the website.

Reply to this email directly or view it on GitHubhttps://github.com//issues/695#issuecomment-34773078
.

@axelfontaine axelfontaine added this to the Flyway 3.0 milestone Apr 15, 2014
@axelfontaine
Copy link
Contributor

As of Flyway 3.0, validateOnMigrate is now true by default.

@axelfontaine axelfontaine changed the title Provide checksum / file length check on SQL files validateOnMigrate is true by default Apr 19, 2014
@mohitsins
Copy link

where to set the property false please explain

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

3 participants