How to handle hotfix changesets when rolling back

Hi everyone,

I’m considering using Liquibase for a project, and I’m trying to understand how to handle rollbacks in a specific situation.

I currently have a database migration history that looks like this:

In this case:

  • I initially tagged 1.28.0 after applying its migrations.
  • Later, I applied 1.29.0 and tagged it as well.
  • After that, I needed to introduce a hotfix to 1.28, which I tagged as 1.28.1.

Now, I want to rollback 1.29.0, meaning I need to rollback to 1.28.1. So…

  1. How can I rollback 1.29.0 while keeping 1.28.1?
  2. Would labels or contexts help in this case? Or perhaps is there a way to structure the changelogs to avoid this issue?

Thanks in advance!