<?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="0b50b845-1b0d-4b51-8765-000751899d3a">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="campaignparticipantlog"/>
            </not>
        </preConditions>
        <createTable tableName="campaignparticipantlog">
            <column name="CAMPAIGNPARTICIPANTLOGID" type="CHAR(36)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="CAMPAIGNPARTICIPANT_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="PREVIOUS_CAMPAIGNSTEP_ID" type="CHAR(36)"/>
            <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"/>
        </createTable>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="79587fb2-cbef-4bc1-b8e9-b3545a3e7c55">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPTCPTLG_CAMPAIGN_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPTCPTLG_CAMPAIGN_ID" tableName="campaignparticipantlog">
            <column name="CAMPAIGN_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="3b70d9fb-6d91-4b00-8de2-949e26488059">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPTCPTLG_CMPSTEP_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPTCPTLG_CMPSTEP_ID" tableName="campaignparticipantlog">
            <column name="CAMPAIGNSTEP_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="fe7babb2-b21e-4f11-917e-ab3f732bbdd1">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPTCPTLG_PRE_STEP_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPTCPTLG_PRE_STEP_ID" tableName="campaignparticipantlog">
            <column name="PREVIOUS_CAMPAIGNSTEP_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="da83e6ae-1ab6-4b87-8726-7df350388913">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CMPAIGNPTCPTLG_PTCPT_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CMPAIGNPTCPTLG_PTCPT_ID" tableName="campaignparticipantlog">
            <column name="CAMPAIGNPARTICIPANT_ID"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>