Compare data between databases with difftype=data liquibase

久未见 提交于 2019-12-13 16:03:15

问题


I try to integrate a versioning system for my databases. I use liquibase.

I work with the diff system because I modify the sql directly and I don't want to have to report the changes I made manually.

It works for schemas but not really for datas. I tried to use the difftype=data on generatechangelog but I don't know how to do to compare 2 databases datas.

Do you have any solution ?


回答1:


If you are comparing databses you want to use diffChangeLog rather than generateChangeLog. GenerateChangeLog outputs the full creation logic for a single database, it doesn't compare two databases.

GenerateChangeLog supports the diffType=data attribute which will output the contents of a database as csv or insert statements, but there is no support for comparing data in two databases.



来源:https://stackoverflow.com/questions/19292945/compare-data-between-databases-with-difftype-data-liquibase

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