How to rollback changeSetId using SQL Dialect

I am intrigued by the rollback capability that allows you to reference the changeset that originally created a statement:

<changeSet id="changeRollback2-drop" author="liquibase">
  <dropTable tableName="changeRollback2"/>
  <rollback changeSetId="changeRollback2-create" changeSetAuthor="liquibase"/>
</changeSet>

How can we do this using the SQL Dialect?

1 Like

Welcome whitford.

Rollback to changeSetId is currently only availabe in XML changelogs.

1 Like

Thanks for confirming. I found an open issue – with a PR! :crossed_fingers:

LOL The guy that opened that PR works at my company.

1 Like