java - Silently stopping Liquibase at mid-update -
is there way can cancel liquibase update after started it?
i've list around 5000 changesets, , need prevent changesets specific point forward, not executed if specific condition occurs in 1 of scripts.
since putting < preconditions > in of existing scripts, , new ones created until end of days, not doable approach, looking alternative , tried following:
- created < customchange > , throw exception
- created invalid < sql > statement
- added < stop /> in < changeset >
all cases work, throw thousands of log lines (that can't have), because need silent stop.
since creating include changelog file dynamically (for smaller changelogs) simple iterate smaller changelog files until reach file each things can executed or not. execute query check specific condition, , if ran ok, create dynamic changelog file remaining changelogs.
Comments
Post a Comment