How to rollback a specific changetset


Lets say I have 5 changesets in a single changelog. All changeset has their own rollback section. How can I rollback a specific changeset from the changelog.

Thanks in advance.

Rgds - SR

There isn’t a built in method to roll back to a particular changeset. Only to a tag, date or number of changes.

You would be able to implement a java method similar to the liquibase.Liquibase.rollback(…) methods with a custom ChangeSetFilter that looks for changeSets ran after the given changeSet. It would be perhaps 25 lines of code.


Anyone please.

Thanks Nathan.