Last active
August 29, 2015 14:07
-
-
Save ljnelson/04eec00d0dc1caa5da15 to your computer and use it in GitHub Desktop.
person-jpa example for Liquibase blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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