Skip to content
Snippets Groups Projects
create_classification.xml 2.92 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="97e7daf0-1457-4657-87a8-e2c48d1939f6">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="classification"/>
            </not>
        </preConditions>
        <createTable tableName="classification">
            <column name="CLASSIFICATIONID" type="CHAR(36)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="VALUE" type="CHAR(36)"/>
            <column name="CLASSIFICATIONTYPE_ID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="OBJECT_TYPE" type="VARCHAR(50) character set utf8mb4">
                <constraints nullable="false"/>
            </column>
            <column name="OBJECT_ROWID" type="CHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column defaultValueComputed="NULL" name="SCOREPOINTS" type="DECIMAL(14, 2)"/>
        </createTable>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="bbdda950-0926-4573-8a82-efa498cdc6e9">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CLSSIFICTION_OBJECT_ROWID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CLSSIFICTION_OBJECT_ROWID" tableName="classification">
            <column name="OBJECT_ROWID"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="a62a3dcd-40b7-4e37-bb2f-839ac50001d8">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CLSSIFICTION_SCORE_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CLSSIFICTION_SCORE_ID" tableName="classification">
            <column name="VALUE"/>
        </createIndex>
    </changeSet>
    <changeSet author="L.Werner (generated)" id="2a489a15-33ce-45fa-8b77-391db51676ee">
        <preConditions onFail="MARK_RAN">
            <not>
                <indexExists indexName="IDX_CLSSIFICTION_TYPE_ID"/>
            </not>
        </preConditions>
        <createIndex indexName="IDX_CLSSIFICTION_TYPE_ID" tableName="classification">
            <column name="CLASSIFICATIONTYPE_ID"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>