Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jhipster liquibase doesn't update database

I m trying to add a new entity, I don't use the full hot reload, so I created a db-changelog-002.xml file with the new table to be created in the changeset of the file. Then I ran a mvn spring-boot:run, but my database doesn't get updated with the new table. Is it normal?

Thank you in advance.

like image 443
user1260928 Avatar asked Dec 03 '25 10:12

user1260928


2 Answers

You must add your file to master.xml file, like below.

<include file="classpath:config/liquibase/changelog/db-changelog-002.xml" relativeToChangelogFile="false"/>
like image 118
fyelci Avatar answered Dec 09 '25 02:12

fyelci


No Need to create another db-changelog-002.xml file.just add another change set in our Db-ChangeLog.xml file.It will work fine for you.

like image 28
Charnjeet Singh Avatar answered Dec 09 '25 01:12

Charnjeet Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!