问题
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