在混合迁移文件夹中忽略了基于Flyway Java的迁移 [英] Flyway Java-based migration ignored in a mixed migrations folder
问题描述
我将sql迁移放置在项目的recourses文件夹中,但是随后我们需要创建一个基于Java的迁移,并将其放置在同一文件夹中: http://i.stack.imgur.com/J8XEH.png
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
由于某些原因,基于Java的迁移被完全忽略: http://i.stack.imgur.com/9mqkk.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?
推荐答案
基于Java的迁移必须首先进行编译.为此,它们必须位于src/main/java下,而不是src/main/resources
Java-based migrations must be compiled first. For that they must be under src/main/java, instead of of src/main/resources
这篇关于在混合迁移文件夹中忽略了基于Flyway Java的迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!