Skip to content

Instantly share code, notes, and snippets.

@ljnelson
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljnelson/04eec00d0dc1caa5da15 to your computer and use it in GitHub Desktop.
Save ljnelson/04eec00d0dc1caa5da15 to your computer and use it in GitHub Desktop.
person-jpa example for Liquibase blog post
<?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.2.xsd"
logicalFilePath="person-jpa">
<changeSet logicalFilePath="person-jpa" id="Initial changeSet" author="ljnelson">
<empty/>
</changeSet>
<changeSet logicalFilePath="person-jpa" id="PERSON table creation" author="ljnelson">
<createTable tableName="PERSON">
<column name="ID" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="PK_PERSON"/>
</column>
<column name="VERSION" type="SMALLINT" defaultValueNumeric="1">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment