Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
name-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="name-jpa">
<changeSet logicalFilePath="name-jpa" id="Initial changeSet" author="ljnelson">
<empty/>
</changeSet>
<changeSet logicalFilePath="name-jpa" id="NAME table creation" author="ljnelson">
<createTable tableName="NAME">
<column name="ID" type="BIGINT">
<constraints primaryKey="true" primaryKeyName="PK_NAME"/>
</column>
<column name="VERSION" type="SMALLINT" defaultValueNumeric="1">
<constraints nullable="false"/>
</column>
<column name="TYPE" type="NVARCHAR(40)">
<constraints nullable="false"/>
</column>
<column name="VALUE" type="NVARCHAR(40)">
<constraints nullable="false"/>
</column>
<column name="PERSON_ID" type="BIGINT">
<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