elpazio
elpazio

Reputation: 707

why liquibase append new changes to the exisiting content of diffChangelog?

I am using Liquibase Hibernate extension to generate diffChangeLogFile against my database and my model.The problem is when I run it with maven and there is some changes in the model, Liquibase append the generated ChangeSets to the old diffChangeLogFile content so I get a lot of repeated ChangSets, not with the same id but with the same content. I know it will not be a problem for update because Liquibase will skip repeated changeSets but I want that everytime I run maven diff goal, Liquibase erase the old content of my diffChangeLogFile and put the new one.

Upvotes: 3

Views: 752

Answers (1)

SteveDonie
SteveDonie

Reputation: 9016

That is basically the purpose of the diff command. If you want to generate a new change log, you should be using the generateChangeLog command.

Upvotes: 1

Related Questions