jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.56k stars 4.02k forks source link

Adding a field on entity after first generation modifies the first changeset #6508

Closed anthonyrichir closed 7 years ago

anthonyrichir commented 7 years ago
Overview of the issue

When adding a field on an existing entity, Jhipster modifies the create column statement. This leads to errors with Liquibase when the project has already been deployed, as the changeset checksum will change.

Motivation for or Use Case

Although Jhipster is meant for bootstrapping a project, it should also allow to modify and redeploy a project generated with it.

Reproduce the error
  1. Generate a new project with a DB such as MySQL
  2. Create an entity with one field
  3. Run the project
  4. Add a field to your entity
  5. Rerun the project
Suggest a Fix

Each time the entity subgenerator is called, Jhipster should create a new changeset.

gmarziou commented 7 years ago

See #6016 if you want to help

jdubois commented 7 years ago

I'm closing this as work is being done on #6016