验证失败异常 liquibase

问题描述 投票:0回答:0

我运行了一个指向 .SQL 文件的变更集。之后,我修改了 .SQL 文件,然后在运行变更集时出现以下错误:

main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/citi/wlcr/db/config/LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed:
     1 change sets check sum
          liquibase/ref_data_base/DEAL_REF/ref_clean_db_dml.xml::ref_data_base-DML-Truncate-deal-ref-table::oa07494 was: 8:57d40d6c4cf96f7f1b94b780fc57ea98 but is now: 8:9394c4b184ab51e6f7e0132294b4b893  

我试图解决的事情:
删除 databasechangelog 表中的 id 和 author 条目。
运行 clearCheckSums gradle 任务。
但错误仍然存在

不确定是否有一些简单的方法可以消除这个错误,或者让当前的 SQL 文件运行。
关于如何消除此错误的任何提示?

liquibase
© www.soinside.com 2019 - 2024. All rights reserved.