<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
        http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
    <changeSet id="1" author="urvigala">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
            USE art_relations;;

            DELETE FROM `release_approval_queue` WHERE `status` IN ('checked_in','checked_out') AND `release_approval_id` = 1050369;;
            DELETE FROM release_correction WHERE `release_correction_id` = 103217 AND release_id = 581552;;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                USE art_relations;;

                INSERT INTO `release_correction` (`release_correction_id`, `release_id`, `status`, `last_updated`, `last_updated_by`, `last_updated_type`) VALUES('103217','581552','submitted','2015-11-03 04:49:49','600','oa');;
                INSERT INTO `release_approval_queue` (`release_approval_id`, `release_id`, `release_correction_id`, `checked_out_by`, `admin_approval`, `status`, `approved_by`, `last_updated`, `date_submitted`, `initiate_errorcorrection`, `submitted_by`) VALUES('1050369','581552','103217','1059','N','checked_out',NULL,'2016-08-30 11:35:41','2015-11-03 04:49:49','1','600');;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
