Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • External file references
  • Liquibase preconditions
  • Liquibase extensions

Sample

Here is a sample changelog file (filename: employee.xml)

Code Block
languagexml
<?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.8.xsd">  

    <changeSet  id="157"  author="bob">  
        <createTable  tableName="employee">  
            <column  name="id"  type="int">  
                <constraints  primaryKey="true"  nullable="false"/>  
            </column>  
            <column  name="name"  type="varchar(50)">  
                <constraints  nullable="false"/>  
            </column>  
            <column  name="active"  type="boolean"  defaultValueBoolean="true"/>  
        </createTable>  
    </changeSet>  

</databaseChangeLog>

Properties for Changelogs

...

Processing halts and reports errors if these conditions are not met. 

In addition to these properties, other properties are also supported as documented here: Using the metadata.properties file

Processing

During processing, the Liquibase changesets are transformed to Datical changesets. 

...