I have a requirement like calling a .bat file with parameters from liquibase upgrade scripts. Also also this should run only one time like change set.
Thanks, Jags
I have a requirement like calling a .bat file with parameters from liquibase upgrade scripts. Also also this should run only one time like change set.
Thanks, Jags
You would want to look at the executeCommand
change type, documented on the liquibase site.
Here's a quick example:
<changeSet author="liquibase-docs" id="executeCommand-example">
<executeCommand executable="runCommand.bat"/>
</changeSet>
As with all changesets, by default this would run only once per database. If you wanted something to run with each update, you could add the runAlways
or runOnChange
attributes to the changeset.