Applies to
- Liquibase Pro
- Liquibase Open Source (Community)
Conditions
- Any version of Liquibase Pro or Open Source
Question
Can Liquibase rollback based on a shared ID?
For example, if you have the below two changesets, 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 Pro does offer 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.