All Downloads are FREE. Search and download functionalities are using the official Maven repository.

changelog.automata-core.xml Maven / Gradle / Ivy

<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">

    <changeSet author="tushar" id="1535500379742-4">
        <createTable tableName="state_entity">
            <column autoIncrement="true" name="id" type="BIGINT">
                <constraints primaryKey="true"/>
            </column>
            <column name="state_name" type="VARCHAR(30)"/>
            <column name="create_ts" type="timestamp"/>
            <column name="delete_ts" type="timestamp"/>
            <column name="update_ts" type="timestamp"/>
            <column name="entity_id" type="VARCHAR(20)"/>
            <column name="automata_type" type="VARCHAR(30)"/>
            <column name="lookup_key" type="VARCHAR(255)"/>
        </createTable>
        <addUniqueConstraint columnNames="entity_id" constraintName="state_entity_uk" tableName="state_entity"/>
        <addNotNullConstraint tableName="state_entity" columnName="create_ts" columnDataType="timestamp"
                              defaultNullValue="CURRENT_TIMESTAMP"/>
        <createIndex indexName="order_entity_idx" tableName="state_entity">
            <column name="create_ts"/>
        </createIndex>
    </changeSet>
    <changeSet author="tushar" id="1535500379742-5">
        <createTable tableName="pending_event">
            <column autoIncrement="true" name="id" type="BIGINT">
                <constraints primaryKey="true"/>
            </column>
            <column name="create_ts" type="datetime"/>
            <column name="delete_ts" type="datetime"/>
            <column name="event_name" type="VARCHAR(30)"/>
            <column name="entity_id" type="VARCHAR(20)"/>
            <column name="payload" type="VARCHAR(255)"/>
            <column name="automata_name" type="VARCHAR(30)"/>
            <column name="lookup_key" type="VARCHAR(255)"/>
            <column name="retry_count" type="BIGINT"/>
        </createTable>
        <createIndex indexName="pending_event_idx" tableName="pending_event">
            <column name="entity_id"/>
        </createIndex>
    </changeSet>
    <changeSet author="tushar" id="1535500379742-6">
        <createTable tableName="rejected_event">
            <column autoIncrement="true" name="id" type="BIGINT">
                <constraints primaryKey="true"/>
            </column>
            <column name="create_ts" type="datetime"/>
            <column name="delete_ts" type="datetime"/>
            <column name="event_name" type="VARCHAR(30)"/>
            <column name="entity_id" type="VARCHAR(20)"/>
            <column name="payload" type="VARCHAR(255)"/>
            <column name="automata_name" type="VARCHAR(30)"/>
            <column name="lookup_key" type="VARCHAR(255)"/>
            <column name="retry_count" type="BIGINT"/>
        </createTable>
        <createIndex indexName="rejected_event_idx" tableName="rejected_event">
            <column name="entity_id"/>
        </createIndex>
    </changeSet>
    <changeSet author="tushar" id="1535500379742-7">
        <createTable tableName="success_event">
            <column autoIncrement="true" name="id" type="BIGINT">
                <constraints primaryKey="true"/>
            </column>
            <column name="create_ts" type="datetime"/>
            <column name="delete_ts" type="datetime"/>
            <column name="event_name" type="VARCHAR(30)"/>
            <column name="entity_id" type="VARCHAR(20)"/>
            <column name="payload" type="VARCHAR(255)"/>
            <column name="automata_name" type="VARCHAR(30)"/>
            <column name="lookup_key" type="VARCHAR(255)"/>
            <column name="retry_count" type="BIGINT"/>
        </createTable>
        <createIndex indexName="success_event_idx" tableName="success_event">
            <column name="entity_id"/>
        </createIndex>
    </changeSet>
</databaseChangeLog>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy