Skip to content
Snippets Groups Projects
create_campaignparticipant.xml 3.61 KiB
Newer Older
Lukas Werner's avatar
Lukas Werner committed
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.1.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
    <changeSet author="L.Werner (generated)" id="410600f7-4fa5-47a0-a2cd-c18e789ec307">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="campaignparticipant"/>
            </not>
        </preConditions>
        <createTable tableName="campaignparticipant">
            <column name="CAMPAIGNPARTICIPANTID" type="CHAR(36)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="CONTACT_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="CAMPAIGN_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="CAMPAIGNSTEP_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="USER_NEW" type="VARCHAR(50)"/>
            <column name="DATE_NEW" type="datetime">
                <constraints nullable="false"/>
            </column>
            <column name="USER_EDIT" type="VARCHAR(50)"/>
            <column defaultValueComputed="NULL" name="DATE_EDIT" type="datetime"/>
            <column name="RESPONSIBLE_CONTACT_ID" type="CHAR(36)"/>
        </createTable>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="b83e63f5-6c99-498b-a0f1-9f035e761165">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CAMPAIGNPART_RES_CONTACT"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CAMPAIGNPART_RES_CONTACT" tableName="campaignparticipant">
            <column name="RESPONSIBLE_CONTACT_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="b7bc61eb-49f1-4e75-a68c-4bdb659ca7a2">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPARTCPNT_CMPSTEP_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPARTCPNT_CMPSTEP_ID" tableName="campaignparticipant">
            <column name="CAMPAIGNSTEP_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="c1cf7571-8a3f-40f4-ad88-6a021948556c">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPARTCPNT_CMP_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPARTCPNT_CMP_ID" tableName="campaignparticipant">
            <column name="CAMPAIGN_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="a0e9e6c7-ffa6-4028-9a5b-ef933150306a">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPARTCPNT_CONTACT_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPARTCPNT_CONTACT_ID" tableName="campaignparticipant">
            <column name="CONTACT_ID"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>