Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jhipster liquibase validation error after modify entity

I was trying to add an field to my entity as a CLOB. When using the JHipster CLI it was no problem to add it.

Now, when i trying to start my application i get the following validation error from liquibase:

liquibase.exception.ValidationFailedException: Validation Failed:
     1 change sets check sum
          config/liquibase/changelog/20170221193921_xxxxxxxx.xml::20170221193921-1::jhipster was: 7:d8b3f42d8d4d523c7b14f93b4c7657c7 but is now: 7:a2a365179a0d231c2771ebd79f51b1fc

i also tried the following:

./mvnw liquibase:clearCheckSums

The result was BUILD SUCCESS.

i also tried ./mvnw liquibase:update and updateSQL, same result.

Can anyone tell me what my problem is with JHipster?

like image 585
krypto88 Avatar asked Apr 04 '17 12:04

krypto88


1 Answers

The quick solution is to run:

./mvnw clean
./mvnw liquibase:clearCheckSums

This will work, however you're missing the point of using Liquibase to track changes. For development purposes it's OK.

The correct way to fix that is to run ./mvnw liquibaseDiffChangeLog to create a diff changelog of the changes made to your database. This can then be added to the master.xml file as a new entry which can be applied next time you fire your app.

like image 53
d0rian Avatar answered Oct 17 '22 05:10

d0rian