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

            DROP TABLE IF EXISTS `ROLLBACK-DISTRO-2200_youtube_channel_video_status`;;

            CREATE TABLE `ROLLBACK-DISTRO-2200_youtube_channel_video_status`
            SELECT * FROM youtube_channel_video_status
            WHERE youtube_video_id IN ('0OFadIpJ9Oo', '1WsCtibbUhc', '4gZuUYfUnNM', '56BY2lBwESk', 'COqmhGNYE0o', 'dCkLob2VvNI', 'Di3QgOHM4kk', 'EujPM6jWaVw', 'H0GHx_ZiVvg', 'NiskA8R1G20', 'oxSWZ64oSus', 'Qmya-VieP3o', 'qWzhyHBTKDQ', 'RQpSvwGQZJU', 'rvfkoruUDuM', 'sD7GS5v6PLw', 'za_d15-N8R8', 'zN8WzL4N9Fo', 'ZYVWPItLByM');;

            DELETE yt.* FROM youtube_channel_video_status yt
            INNER JOIN `ROLLBACK-DISTRO-2200_youtube_channel_video_status` rp2200 ON rp2200.youtube_video_id = yt.youtube_video_id;;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                USE art_relations;;
                
                INSERT INTO youtube_channel_video_status
                SELECT * FROM `ROLLBACK-DISTRO-2200_youtube_channel_video_status`;;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
