How to capture next changeset in Liquibase

581 Views Asked by At

Starting to learn Liquibase. I followed documentation, and watched tutorial videos. And I created MSSQL DB, did generateChangeLog, and changelog.xml got created. And did update on to target DB. Now I added one column, and want to capture it in next changeset. Which command should I run? Liquibase documenation says I should manually edit changelog.xml?

1

There are 1 best solutions below

1
On

From your description, it sounds like you manually added a column to the source database and want to generate another changelog. This would not be the recommended way of using liquibase. The recommended best practice is to add a new changeset by manually editing the changelog.xml and using liquibase update to apply those changes.

Also, you can use liquibase diff or liquibase diff-changelog to generate new changesets of differences between the two databases.

We have some free training courses that will help available at Liquibase University