Packaging Liquibase changelogs is a separate process from packaging SQL files. They may be placed only in flexible folders. There is no fixed-folder name or processing for Liquibase changelogs.
Place the changelog files in a folder in your sql_code repository.
changelog
is used in examples.The changesets in changelog files may not include the following
The following properties in metadata.properties
must be set in a folder that contains only changelogs.
packageMethod=changelog
rerunnable=false
Processing halts and reports errors if these conditions are not met.
During processing, the Liquibase changesets are transformed to Datical changesets.
The following attributes are added and set for the changelog and its changesets.
Additional properties are set during processing:
The changelog XML files are copied to the Resources folder for the project.
After processing, the changelog XML files are moved to the Archive folder for the project.
You can package developer workflow scripts alongside the original changelog to manage workflow for its packaged changesets.
Supported
Ignore - add a an ignore file to prevent the packaged changesets from being deployed.
<original-filename>-ignore.xml |
Cleanup - add an XML changelog to reverse database changes caused by packaging a changelog. The cleanup changelog must account for all changes made by the original changelog.
<original-filename>-cleanup.xml |
Replace - add a replacement changelog to replace the original changelog.
<original-filename>-replace.xml |
Not Supported
See Developer Workflows: Managing Changesets During Development and Test.