Flyway specific migration with csv files

时光总嘲笑我的痴心妄想 提交于 2020-01-03 17:33:27

问题


We are using Flyway to keep up-to-date many databases in our test environments with sql scripts and it works fine. But we have a special need to also update databases with csv files. I know Flyway offers some Java based migrations to handle more complicated updates. But the problem is that these Java classes have the wanted version in their names, that would oblige us to recompile the class each time we want to use it. It would be more simple if we could drop our csv files in migration directories exactly like we do with sql files. Then some specific Java code would handle these csv files to do the right update. So how can we extend Flyway with this specific code that would handle our csv files ? Thanks


回答1:


There is currently no support this. Sounds like the same issue as https://github.com/flyway/flyway/issues/469

I am still not sure how to resolve this without exposing too much of Flyway's internals.



来源:https://stackoverflow.com/questions/17830630/flyway-specific-migration-with-csv-files

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