Applies to
- Liquibase Secure (Pro)
- Liquibase Community (Open Source)
Conditions
- Any version of Liquibase Secure (Pro) or Community
Question
Can Liquibase rollback based on a shared ID?
For example, if you have the two changesets below, can a rollback targeting just the ID of 1 be used?
-- changeset developerA:1
-- changeset developerB:1
Answer
No, Liquibase cannot roll back directly based solely on a shared ID since Liquibase uses the combination of author, ID, and file path to identify unique changesets.
Liquibase Secure (Pro) offers targeted rollbacks, such as the rollback-one-changeset, rollback-one-update, and rollback-to-date, that can be used to target specific changesets to rollback.
Comments
0 comments
Article is closed for comments.