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!
The
generateChangelog
command is used to generate an initial changelog. If you want to append to a changelog you use thediffChangelog
command.