Generator-jhipster: Update entity using sub-generator break liquibase checksum

Created on 27 Jul 2017  路  4Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

The jdl sub-generator update liquibase xxx_added_entity_zzzz.xml file when changing entity field type. This breaks liquibase versioning checksum so database update fails.

ready: Validation Failed:
     1 change sets check sum
          classpath:config/liquibase/changelog/20170724170916_added_entity_Transaction.xml::20170724170916-1::jhipster was: 7:35080fe5018db314e32723780afb33fc but is now: 7:a03e3f8a8aa39ab7bdd0b126e0acc40a


liquibase.exception.ValidationFailedException: Validation Failed:
     1 change sets check sum
          classpath:config/liquibase/changelog/20170724170916_added_entity_Transaction.xml::20170724170916-1::jhipster was: 7:35080fe5018db314e32723780afb33fc but is now: 7:a03e3f8a8aa39ab7bdd0b126e0acc40a
Motivation for or Use Case

The db need to be deleted

Reproduce the error

Create jdl entity, import it with the sub-generator. Update one field in the jdl, use the sub-generator to import it again.

Related issues
Suggest a Fix

Create new changeset file for every update.

JHipster Version(s)

[email protected]

All 4 comments

Did you read the documentation? Once it's generated you can use the Maven Liquibase goal.
If you re-generate, nothing is magical.

Great.
Good job guys!

Did you read the documentation? Once it's generated you can use the Maven Liquibase goal.
If you re-generate, nothing is magical.

Which goal exactly?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedeldeeb25 picture ahmedeldeeb25  路  3Comments

RizziCR picture RizziCR  路  3Comments

chegola picture chegola  路  4Comments

marcelinobadin picture marcelinobadin  路  3Comments

pascalgrimaud picture pascalgrimaud  路  3Comments