问题
I have sql migrations placed in the recourses folder of the project, but then we needed to create a Java-based migration, which we placed in the same folder: http://i.stack.imgur.com/J8XEH.png
For some reason the Java-based migration is completely ignored: http://i.stack.imgur.com/9mqkk.png
Can I not mix the two types of migrations together?
回答1:
Java-based migrations must be compiled first. For that they must be under src/main/java, instead of of src/main/resources
来源:https://stackoverflow.com/questions/26772770/flyway-java-based-migration-ignored-in-a-mixed-migrations-folder