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

            CREATE TABLE `ROLLBACK-MR1368-video_dashboard_item_status`
            SELECT * FROM video_dashboard_item_status WHERE dashboard_item_id IN (18732, 18752);;

            CREATE TABLE `ROLLBACK-MR1368-video_dashboard_item`
            SELECT * FROM video_dashboard_item WHERE dashboard_item_id IN (18732, 18752);;

            DELETE FROM video_dashboard_item_status WHERE dashboard_item_id IN (18732, 18752);;
            DELETE FROM video_dashboard_item WHERE dashboard_item_id IN (18732, 18752);;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                USE art_relations;;

                INSERT INTO video_dashboard_item
                SELECT * FROM `ROLLBACK-MR1368-video_dashboard_item` WHERE dashboard_item_id IN (18732, 18752);;

                INSERT INTO video_dashboard_item_status
                SELECT * FROM `ROLLBACK-MR1368-video_dashboard_item_status` WHERE dashboard_item_id IN (18732, 18752);;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
