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

dule.bahmnicore-omod.1.2.0.source-code.addAtomfeedMigrations.xml Maven / Gradle / Ivy

The newest version!
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

    <changeSet context="setup" author="ict4h" id="atomfeed-migration-202208081136">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="markers"/>
            </not>
        </preConditions>
        <createTable tableName="markers">
            <column name="feed_uri" type="varchar(255)">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="last_read_entry_id" type="varchar(255)"/>
            <column name="feed_uri_for_last_read_entry" type="varchar(255)"/>
        </createTable>
    </changeSet>

    <changeSet context="setup" author="ict4h" id="atomfeed-migration-202208081138">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="failed_events"/>
            </not>
        </preConditions>
        <createTable tableName="failed_events">
            <column name="id" type="serial">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="feed_uri" type="varchar(255)"/>
            <column name="failed_at" type="timestamp"/>
            <!-- TODO: change to CLOB -->
            <column name="error_message" type="varchar(4000)"/>
            <column name="event_id" type="varchar(255)"/>
            <!-- TODO: change to CLOB -->
            <column name="event_content" type="varchar(4000)"/>
            <column name="error_hash_code" type="int"/>
        </createTable>
    </changeSet>

    <changeSet context="setup" author="ict4h" id="atomfeed-migration-202208081140">
        <preConditions onFail="MARK_RAN">
            <not>
                <columnExists tableName="failed_events" columnName="title" />
            </not>
        </preConditions>
        <addColumn tableName="failed_events">
            <column name="title" type="varchar(255)"/>
        </addColumn>
    </changeSet>

    <changeSet author="Jaswanth" id="atomfeed-migration-202208081139">
        <preConditions onFail="MARK_RAN">
            <not>
                <columnExists tableName="failed_events" columnName="retries"/>
            </not>
        </preConditions>
        <addColumn tableName="failed_events">
            <column name="retries" type="int"
                    defaultValueNumeric="0">
                <constraints nullable="false"/>
            </column>
        </addColumn>
    </changeSet>

    <changeSet author="Jaswanth" id="atomfeed-migration-202208081142">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="failed_event_retry_log"/>
            </not>
        </preConditions>
        <createTable tableName="failed_event_retry_log">
            <column name="id" type="serial">
                <constraints nullable="false" primaryKey="true"/>
            </column>
            <column name="feed_uri" type="varchar(255)"/>
            <column name="failed_at" type="timestamp"/>
            <column name="error_message" type="varchar(4000)"/>
            <column name="event_id" type="varchar(255)"/>
            <column name="event_content" type="varchar(4000)"/>
            <column name="error_hash_code" type="int"/>
        </createTable>
    </changeSet>

    <changeSet context="setup" author="angshu, dubey" id="atomfeed-migration-202208081144">
        <preConditions onFail="MARK_RAN">
            <not>
                <columnExists tableName="failed_events" columnName="tags"/>
            </not>
        </preConditions>
        <comment>Creating column tags for failed_events table. This is same as atom spec feed.entry.categories.</comment>
        <addColumn tableName="failed_events">
            <column name="tags" type="varchar(255)"/>
        </addColumn>
    </changeSet>
</databaseChangeLog>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy