How to incrementally update changelog?

800 views Asked by At

I've generated changelog with

java -jar liquibase.jar --changeLogFile="./data/<insert file name>" generateChangeLog

I've got a "create table" changelog.

After it I altered table by adding a new column and runned

java -jar liquibase.jar --changeLogFile="./data/<insert file name>"

generateChangeLog

again. I expected to see incremental log with "create table" and "alter table", but it showing "ChangeLog ...... already exists!".

How to incrementally update ChangeLog?

Thank you!

1

There are 1 answers

3
SteveDonie On BEST ANSWER

The generateChangelog command is used to generate an initial changelog. If you want to append to a changelog you use the diffChangelog command.