Imagine I have a USER MySql table with the rows id, name, email, address in the 'main' Git branch. I create a new feature branch and decide the 'address' column needs to be removed from the USER table and be put into its own separate table. This is done by adding a new changeset to my Liquibase changelog file. I refactor my code afterwards and everything works well!
Now I switch back to the 'main' branch and try to run my code. Everything crashes now, since my code expects there to be an 'address' column in the USER table, but it's not there.
This situation happens often in our codebase. Is there a way to avoid this? Somehow be able to 'roll back' the changesets that are NOT on the 'main' branch?