<?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="bhavinrshah">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
            USE art_relations;;

            DELETE FROM `release_approval_queue` where release_id = 414329 AND release_correction_id = 9401 AND release_approval_id = 1140516;;
            DELETE FROM `release_correction` WHERE release_id = 414329 AND release_correction_id = 9401;;
        </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(9401,414329,'submitted','2016-04-21 10:54:55',939,'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 (1140516,414329,9401,769,'N','checked_out',NULL,'2016-04-21 10:57:28','2016-04-21 10:54:55',0,939);;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
