How can I merge multiple files into a single flyway migration?

爱⌒轻易说出口 提交于 2019-12-13 07:18:38

问题


I have two sql file

/migrations
    v1.0.0__geo-areas-tables.sql
    v1.0.0__geo-areas-data.sql

These files are the same version of the migration. How can I apply them within the limits of migration 1.0.0?

P.s. I do not want to use additional scripts combine these files into one.


回答1:


The rule is simple: one version = one script.

In your case you probably want to name them v1.0.0.0__geo-areas-tables.sql and v1.0.0.1__geo-areas-data.sql as that is the order you want to guarantee anyway.



来源:https://stackoverflow.com/questions/35857769/how-can-i-merge-multiple-files-into-a-single-flyway-migration

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