This answer works with Spring Boot version 1.X. If you are looking for an answer for Spring Boot 2.X , you should see the answer below .
flyway.enabled -boot has the property to disable flyway if it needs flyway.enabled which defaults to true.
You may have a specific profile configuration, in your case it should be called application-test.yml . This configuration may disable the flyway if the profile is active. You just have to declare it as follows:
flyway: enabled: false
And if you specify a test profile in the general configuration, just add it to the root directory.
source share