Skip to content
Snippets Groups Projects
create_advertisingitem.xml 3.3 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="0448230f-560d-4486-b309-855327af4303">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="advertisingitem"/>
            </not>
        </preConditions>
        <createTable tableName="advertisingitem">
            <column name="ADVERTISINGITEMID" type="CHAR(36)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="ADVERTISING_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="PRODUCT_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column defaultValueComputed="NULL" name="ITEMPOSITION" type="INT"/>
            <column defaultValueComputed="NULL" name="QUANTITY" type="DECIMAL(14, 2)"/>
            <column name="UNIT" type="VARCHAR(36) character set utf8mb4"/>
            <column defaultValueComputed="NULL" name="PRICE" type="DECIMAL(14, 2)"/>
            <column defaultValueComputed="NULL" name="TARGETAMOUNT" type="DECIMAL(14, 2)"/>
            <column name="DELIVERY" type="VARCHAR(36) character set utf8mb4"/>
            <column defaultValueNumeric="0" name="SENT" type="TINYINT">
                <constraints nullable="false"/>
            </column>
            <column name="STATUS" type="VARCHAR(36) character set utf8mb4"/>
            <column name="INFO" type="LONGTEXT"/>
            <column name="USER_NEW" type="VARCHAR(50) character set utf8mb4"/>
            <column name="USER_EDIT" type="VARCHAR(50) character set utf8mb4"/>
            <column defaultValueComputed="NULL" name="DATE_NEW" type="datetime"/>
            <column defaultValueComputed="NULL" name="DATE_EDIT" type="datetime"/>
        </createTable>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="5b863c6a-40c0-46a5-8afc-d8b6d65336f8">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISINGITEM_ADVERTISING_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISINGITEM_ADVERTISING_ID" tableName="advertisingitem">
            <column name="ADVERTISING_ID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="d79f8ed7-cf16-4f3c-a318-7d222338025e">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_ADVERTISINGITEM_INFO_PRODUCT_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_ADVERTISINGITEM_INFO_PRODUCT_ID" tableName="advertisingitem">
            <column name="PRODUCT_ID"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>