The changelog file
The following is an example of what a Liquibase changelog file can look like.
It defines two changesets, or migrations, with the numerical identifiers 1 and 2:
Changeset 1 creates a table called customer, with a column called name
Changeset 2 adds a column called address to the table called customer
<?xml version="1.0" encoding="utf-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"> <changeSet id="1" author="jave"> <createTable tableName="customer"> <column name="id" type="int"/> <column name="name" type="varchar(50)"/> </createTable> </changeSet> <changeSet id="2" author="jave"> <addColumn tableName="customer"> <column name="address" type="varchar(255)"/> ...