Skip to content
Snippets Groups Projects
create_advertising.xml 3.59 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="fa1c853e-ab38-438c-a50e-bbcbbf72e083">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="advertising"/>
            </not>
        </preConditions>
        <createTable tableName="advertising">
            <column name="ADVERTISINGID" type="CHAR(36)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="CONTACT_ID" type="CHAR(36)"/>
            <column name="RESPONSIBLE_ID" type="CHAR(36)"/>
            <column name="OBJECT_ROWID" type="CHAR(36)"/>
            <column name="OBJECT_TYPE" type="VARCHAR(63) character set utf8mb4"/>
            <column name="STATUS" type="VARCHAR(36) character set utf8mb4"/>
            <column name="CURRENCY" type="VARCHAR(36) character set utf8mb4"/>
            <column defaultValueComputed="NULL" name="DATE_NEW" type="datetime"/>
            <column defaultValueComputed="NULL" name="DATE_EDIT" type="datetime"/>
            <column name="USER_NEW" type="VARCHAR(50) character set utf8mb4"/>
            <column name="USER_EDIT" type="VARCHAR(50) character set utf8mb4"/>
            <column name="CURRENCYRATE_ID" type="VARCHAR(36) character set utf8mb4"/>
        </createTable>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="17f9fe5d-ce80-4743-81b7-ae82d5893d9a">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISING_CONTACT_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISING_CONTACT_ID" tableName="advertising">
            <column name="CONTACT_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="779bae1e-93fe-4b30-b34c-751e7b2fa103">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISING_CURRENCYRATE_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISING_CURRENCYRATE_ID" tableName="advertising">
            <column name="CURRENCYRATE_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="418702b4-d540-4068-af16-6d06b80d62df">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISING_RESPONSIBLE_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISING_RESPONSIBLE_ID" tableName="advertising">
            <column name="RESPONSIBLE_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="5228338d-1c93-4176-bf71-74ea44b2dc9b">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISING_ROW_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISING_ROW_ID" tableName="advertising">
            <column name="OBJECT_ROWID"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>