Flyway Java-based migration ignored in a mixed migrations folder

╄→гoц情女王★ 提交于 2021-01-29 20:08:33

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!