Checksum Mismatch on Flyway – Spring Boot

I created some test tables via flyway, since they were successful, I deleted the tables, scripts and restarted versioning from V1. However, it appears that Flyway maintains a version of the database migration, which prevented me from running the app with an ugly error that said the checksum mismatch occurred on Flyway.

There is an easy fix for that though. You just need to set the following flag in your application properties.

spring.flyway.validateOnMigrate= false

You might however want to do that on your non-prod profiles, that way you are still validating the production.

[My Video Promotion]
Tagged , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.