Added table definition for email_template

Added 1.5 changes file to changelog
This commit is contained in:
Jeroen Baten 2015-10-11 09:51:32 +02:00
parent df30a356f6
commit f19ec23ebd
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?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-2.0.xsd">
<changeSet id="adding-email_template_table" author="vova/jeroen">
<createTable tableName="email_template">
<column name="id" type="int" autoIncrement="true">
<constraints primaryKey="true" nullable="false" primaryKeyName="email_templates_pkey"/>
</column>
<column name="type" type="int"/>
<column name="language" type="int"/>
<column name="content" type="varchar(2048)"/>
</createTable>
<addUniqueConstraint
constraintName="email_template_type_lang_key"
columnNames="type,lang"
deferrable="false"
disabled="false"
initiallyDeferred="false"
tableName="criterion"
/>
</changeSet>
</databaseChangeLog>

View file

@ -12,4 +12,5 @@
<include file="src/main/resources/db.changelog-1.2.xml"/>
<include file="src/main/resources/db.changelog-1.3.xml"/>
<include file="src/main/resources/db.changelog-1.4.xml"/>
<include file="src/main/resources/db.changelog-1.5.xml"/>
</databaseChangeLog>