3
votes

I decided to use liquibase on my Java project with Postgresql, so I created initial changeset using generateChangeLog maven goal. Now it is working without any problems.

What I am looking for is after I made a change on the database (let's say from a RDBMS client), is there any command to analyze the changelog and the database status to generate changeset from my changes and append it to the changeset xml file?

1

1 Answers

2
votes

You are looking for the diffChangelog command: http://www.liquibase.org/documentation/diff.html

In change log mode, an XML change log of what is necessary to upgrade the base database to the target database is sent to standard out. This change log can be included as is, or copied into an existing change log. If the diff command is passed an existing change log file, the new change sets will be appended to the end of the file.