liquibase.examples.xml.liquibase.flowfile.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
########## LIQUIBASE FLOWFILE ##########
########## learn more http://docs.liquibase.com/flow ##########
## Note: Any command which fails in any stage below result in the command stopping, and endStage being run.
## A flow file can have one or more stages, each with multiple "actions",
## or your flow file can have multiple stages with fewer actions in each stage.
stages:
## The first stage of actions.
Default:
actions:
#
# Policy Checks for changelog
#
- type: liquibase
command: checks run
cmdArgs: {checks-scope: changelog}
#
# Run the update
#
- type: liquibase
command: update
#
# Policy Checks for database
#
- type: liquibase
command: checks run
cmdArgs: {checks-scope: database}
## The endStage ALWAYS RUNS.
## So put actions here which you desire to perform whether previous stages' actions succeed or fail.
## If you do not want any actions to ALWAYS RUN, simply delete the endStage from your flow file.
endStage:
actions:
- type: liquibase
command: history