Enable auto-rollback functionality for DSL-based inserts

Description

It looks like if use LiquiBase DSL to do inserts, those will not be automatically rolled back. This is unfortunate. Since we're using LiquiBase DSL it should be able to translate those into proper 'delete' statements on rollback.

Environment

None

Activity

Show:

Nathan Voxland September 22, 2011 at 8:07 PM

I understand now. You are talking about doing a liquibase rollback, not a database rollback on a changelog failure.

The trouble is that it is difficult to know how to do the rollback, since the inserts will often not include the id and we don't know what other values are unique to delete off of.

Kyrill Alyoshin September 21, 2011 at 8:52 PM

For clarity, "DSL" can simply be replaced with "XML" in this issue. If I could do edits, I would do that.

Kyrill Alyoshin September 21, 2011 at 8:51 PM

What I meant by DSL is standard XML that everyone uses to author changesets. I was unaware of any other DSL bridges to SQL generation.

Nathan Voxland September 12, 2011 at 12:23 AM

The DSL is not part of the core liquibase library, but a separate project. You'll have to create an issue there. Liquibase core library supports non-autocommit insert statements

Details

Reporter

Affects versions

Priority

Created August 11, 2011 at 2:00 AM
Updated June 20, 2013 at 3:31 AM