Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

can I have precondition on my rollback tag

$
0
0
Is there anyway to have preconditions for my rollback tag. I have this scenario:
Changeset renames table from users to users_to_delete
A different changeset with a different context (CLEANUP) will be dropping table named users_to_delete

So, the rollback to my first changeset would be to rename table users_to_delete to users.
But, if the CLEANUP was run, then my table would already be gone.
I'd like to have a precondition tableExists on the rollback, but... keep getting errors.

Any help would be appreciated.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>