i have a question regarding data validation. Currently I am inserting data in the DB with the insert method from Liquidbase like this:
an then I validate this data in a following changeset with preconditions and sqlchecks because the constraint are a little complex. This works fine. The problem that I am having is that I want the precondition do be checked after each insert of the data, in order to stop inserting data, if the precondition is violated. Something like a postcondition. Is there anyway to do this?
have read little and what i need is something like in http://forum.liquibase.org/topic/how-to-define-a-check-constraint
This post is a year old is there any new methods
I have a similar scenario. If liquibase had a <postCondition tag that worked exactly like <preCondition except it ran after the refactorings I would use it fairly often.