Applies to:
- Liquibase Pro
- Liquibase Open Source (Community)
Conditions:
- Any version of Liquibase Pro or Open Source
Question:
Can a changeset be run again after it has been deployed?
Answer:
Yes, there are two Liquibase attributes that will cause a changeset to run again after being deployed.
It is strongly recommended that you check the SQL to ensure that it is valid and rerunnable when using these attributes on a changeset.
runOnChange
The parameter runOnChange enables Liquibase to check if the changeset has been modified by checking the checksum in the DATABASECHANGELOG table. If the checksum for the changeset differs from what is in the DATABASECHANGELOG table, Liquibase will deploy the changeset again.
runAlways
The parameter runAlways will cause the changeset to always be deployed every time the Liquibase update is used.
Related Article(s):
N/A
Comments
0 comments
Article is closed for comments.