liquibase checksum validation error is even after updating changelog in master.xml

痴心易碎 提交于 2019-12-24 19:36:01

问题


I am using postgresql in jhipster microservices application. I am following jhipster documentation as below.

Database updates with the Maven liquibase:diff goal If you have choosen to use MySQL, MariaDB or PostgreSQL in development, you can use the ./mvnw liquibase:diff goal to automatically generate a changelog.

If you are running H2 with disk-based persistence, this workflow is not yet working perfectly, but you can start trying to use it (and send us feedback!).

Liquibase Hibernate is a Maven plugin that is configured in your pom.xml, and is independant from your Spring application.yml file, so if you have changed the default settings (for example, changed the database password), you need to modify both files.

Here is the development workflow:

Modify your JPA entity (add a field, a relationship, etc.) Compile your application (this works on the compiled Java code, so don’t forget to compile!) Run ./mvnw liquibase:diff (or ./mvnw compile liquibase:diff to compile before) A new “change log” is created in your src/main/resources/config/liquibase/changelog directory Review this change log and add it to your src/main/resources/config/liquibase/master.xml file, so it is applied the next time you run your application

after updating an entity and following above document I have added generated changelog file in master.xml file.

<include file="config/liquibase/changelog//20190912080313_changelog.xml" relativeToChangelogFile="false"/>

Still I am getting liquibase checksum validation error while running the application.Below is the screenshot

Please help me out with this issue.

来源:https://stackoverflow.com/questions/57902507/liquibase-checksum-validation-error-is-even-after-updating-changelog-in-master-x

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