gpt4 book ai didi

LiquiBase 验证失败异常。校验和无故更改

转载 作者:行者123 更新时间:2023-12-01 03:45:24 24 4
gpt4 key购买 nike

我有一些更改日志文件,当我尝试为它们生成 sql 文件时,我得到:
验证失败异常 .

Caused by: liquibase.exception.ValidationFailedException: Validation Failed:
13 change sets check sum
db-changelogs/test1.xml::test-1::rw is now: 7:d41d8cd98f00b204e9800998ecf8427e

问题是 我没有做任何更改 在这些文件中。我的同事在同一个 git 分支上工作,这对他们来说非常合适。

我检查了 textCoding 和其他一些东西,但它仍然不起作用。
我用 Ant 脚本运行它。

我的数据库更改日志 (new-db-changelog.xml) :
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<include file="db-changelogs/testl.xml"/>

</databaseChangeLog>

更改日志 (test1.xml) :
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<changeSet id="test-1" author="rem" >
<ext:sqlWrapper context="common-schema">
<![CDATA[
CREATE TABLE common.test(
id bigint NOT NULL,
"name" character varying,
CONSTRAINT test_lb_pkey PRIMARY KEY (id)
);
]]>
</ext:sqlWrapper>
</changeSet>

</databaseChangeLog>

最佳答案

添加属性 runOnChange="true"

<changeSet id="test-1" author="rem" runOnChange="true">

关于LiquiBase 验证失败异常。校验和无故更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27360220/

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