• Task
  • Version · 6.0.2
  • Create

Add rollback support to raw SQL scripts

Last updated: November 17, 2026

Before you begin

Procedure

1

Add a marker after each statement

loading
2

Check markers for a formatted SQL changelog

3

Run decorate-sql

loading
loading
4

Check the rollbacks in the changelog

loading
5

Test the rollback

liquibase update-testing-rollback --changelog-file=changelog.xml
loading
loading