YAML changelog example
Last updated: November 18, 2025
Liquibase supports YAML as a format for storing your Changelog files.
Requirements
To use YAML-based changelogs, you must include snakeyaml-<version>.jar in your classpath.
Liquibase ships with snakeyaml.jar already in the Internal>Lib folder, which is already in the default classpath.
Example
This example changelog contains changesets that:
Create a new
persontable with columnsid,firstname,lastname, andstateAdd a new
usernamecolumn to thepersontableCreate a lookup table
stateusing data fromperson
The example precondition requires the user making the deployment to be liquibase.
YAML changelog example
loading
You can add YAML comments outside changesets using the format # my comment.