Had this problem too. Solved it a different way (but I think I’ll need to enable that git config setting).
The resolution was to do a flyway:repair goal. The problem was that it’s difficult to get this to launch via maven for the following reasons:
- Our flyway configs is being managed by spring boot constructs. So maven plugin doesn’t know about it.
- If you want to pass the values in via config, you’ll have to put it into the section of the plugin, which means modifying pom.xml for checkin.
So, to get this fixed on my side (and I might have disrupted the checksums for Frank, not sure yet), I downloaded the command line interface tool for flyway from:
http://flywaydb.org/documentation/commandline/
Then I copied the sql migration files from the git WebAPI directory into the unzipped command line folder (there’s placeholder directories int he zip to place migration scripts, custom jars, etc). Seems like this command line tool is a boilerplate that if you have different configurations, you make a copy of this folder and set it for the specific application you are managing.
Anyways, I set the flyway jdbc url, credentials, locations in the comamd line configuation, and was able to run ‘repair’ at which point it reset the checksums based on the content in the migrations folder. After that, I could launch webAPI without complaints.
Just wanted to share that if you are still borked after setting the git CRLF option, there is a way to reset the checksums in the schema_version if something gets messed up due to text file change.
-Chris