gpt4 book ai didi

liquibase 不检测数据变化

转载 作者:行者123 更新时间:2023-12-04 18:04:14 24 4
gpt4 key购买 nike

通过在 mysql 中的 2 个表上使用 diffTypes=data 的 liquibase diff 数据更改不会被检测到。在其中一个表中,我更改了现有条目并在表的行上插入了 liquibase 未检测到此更改。结构上的变化没问题。

这是我的 liquibase 差异调用:

liquibase --diffTypes=data --driver=com.mysql.jdbc.Driver --url=jdbc:mysql://localhost:3306/magento --username=username --password=password diff --referenceUrl=jdbc:mysql://localhost:3306/marketing_magento --referenceUsername=username --referencePassword=password

更改在 magento 数据库中

结果如下:

Product Name: EQUAL
Product Version: EQUAL
Missing Data(s): NONE
Unexpected Data(s): NONE
Changed Data(s): NONE
Liquibase 'diff' Successful

问候,卡斯滕

最佳答案

Liquibase 不支持这种数据差异。它可以在某些有限的情况下输出数据——主要的情况是一个数据库中根本不存在表。

由于主要用例是进行结构变更管理,因此做出设计决策以优化该用例的性能。进行逐行数据比较是非常昂贵的,性能方面的,而且正确地做起来很乏味。

关于liquibase 不检测数据变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29893008/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com