I have created an entity called "event" using command yo jhipster:entity event while creating I forgot add one column let's say "event_title" so, I have added this(event_tile) column manually in liquibase changelog xml. Now how to update event table with newly added column?
JHipster uses Liquibase to manage the database updates, and stores its configuration in the /src/main/resources/config/liquibase/ directory.
You need to include the new changelog file in your src/main/resources/config/liquibase/master.xml
file.
<include file="classpath:config/liquibase/changelog/my_new_changelog.xml"
relativeToChangelogFile="false"/>
Next time you run the app, changes will be applied.
You can also update the database with the following maven task :
mvn liquibase:update
.
Here is the doc about using jhipster in development.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With