In 3.5.2 rollbackSplitStatements and rollbackEndDelimiter were introduced to allow us to write our rollback statements in multiple lines and not have to tag every line with "--rollback" or at least I am assuming that from the PR (https://github.com/liquibase/liquibase/pull/334).
But I have not see any documentation on how to use it.
As an example:
--changeset auth:1.1 rollbackSplitStatements:false rollbackEndDelimiter:/
DELETE FROM my_table WHERE id = 3;
--rollback
insert into my_table values (
3,
'firstname',
'lastname'
);
/
This throws an error during migrate:
Unexpected error running Liquibase: ERROR: syntax error at or near "/"
Alternatively this does not throw an error but does execute the statement under "--rollback" during migrate:
--changeset auth:1.1
DELETE FROM my_table WHERE id = 3;
--rollback rollbackSplitStatements:false rollbackEndDelimiter:/
insert into my_table values (
3,
'firstname',
'lastname'
);
/