CICD-311 · Liquibase migration
Encyclopedia · Database delivery and migration · All snippets
Previous · CICD-310 · Next · CICD-312
1. Where it fits
- Placement CI deploy step.
- Prerequisites disposable database, migration tools and a scoped database role.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
liquibase --changelog-file=db/changelog.xml validate
liquibase --changelog-file=db/changelog.xml update3. How it works
Liquibase loads the named changelog and compares changesets against the database changelog history.
4. Verify the result
Inject connection metadata via a protected defaults file or environment. Expect the DATABASECHANGELOG rows to track applied changes.
Validation syntax-validated (Bash parse). Status definitions.