When upgrading to Spring Boot 2
from 1.5
I get the following error, although the SQL scripts haven't changed:
Migration checksum mismatch for migration version 1
-> Applied to database : 1395032327
-> Resolved locally : -175919814
Spring Boot recommends
To make sure that the schema upgrade goes smoothly, please follow the following instructions:
First upgrade your 1.5.x Spring Boot application to Flyway 4 (4.2.0 at the time of writing), see the instructions for Maven and Gradle.
Once your schema has been upgraded to Flyway 4, upgrade to Spring Boot 2 and run the migration again to port your application to Flyway 5.
This is not easily possible if you don't control the deployment and you can't deploy the application twice (e.g. users download the latest version of the app).
What is the cause of the problem and what would be the solution?