Migration scripts for Structure and Data

不羁岁月 提交于 2019-12-10 22:44:10

问题


Is there a good or recommended tool that manages both DDLs and DMLs migrations?

Majority of my App configuration is stored in a database, I want to be able to freely develop and migrate this and not only the DDLs. Any suggestions on this?


回答1:


Both Flyway and Liquibase can deal with DML.

Speaking from the Flyway perspective, Flyway has been built from the ground up with both DDL and DML (configuration, reference data, ...) in mind. The whole range of DML commands can be used as migrations are written as plain SQL files.

For a more detailed comparison of both frameworks have a look at this question and the comparison matrix on the Flyway homepage.




回答2:


Liquibase handles DML as well as DDL. http://liquibase.org/manual/refactoring_commands lists available tags, including insertData, loadData, deleteData, etc.




回答3:


Checking various tools, the solution for us was to refine DBUnit to support migration scripts. The XML structure as the output allows for a very good Source Control and cross vendor solution (we work with both DB2 and Oracle).



来源:https://stackoverflow.com/questions/8809509/migration-scripts-for-structure-and-data

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