<?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="schauhan">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="false">
        
            CREATE TABLE `ROLLBACK-DISTRO-1790_youtube_channel_video_status`
            SELECT * FROM youtube_channel_video_status
            WHERE youtube_video_id IN ('oHz8ziHpork', 'WyI-b2w_AE0', '-jc9Lr-hY2c', 'J5Vw4riE0ZU', '4garx3XcY_c', 'XpCHaJ6BICY', 'tPm97iKqjO8', 'BXeVqb6_fpo', 'eXucOiNdwAc', 'Mo3TdZ8zDuE', '8ljJYxHB1z8', 'IL6mz_xcjCY', 'z-Aq6JvDpqw', '896SXv1tD-s', 'Zm0uB6d-Zuc', '7Ye8pVet_DM', 'eYVnfFsbNFA', '6EJ3ONTEPyI', '7XkwHRBMMP8', 'nGkZK_MCpo4', 'NXuT4exDUWc', 'K6z3aNRJ35o', 'Jzl_BJgi-vA', 'GQDQMgKp3cw', 'Vu-abzeHv-4', 'rM6wSvTrddA', '2JuN0p_p184', 'GEB64ndaSho', 'f03zgMrWF-I', 'kjOpjTlOv9A', '06Rr-Ghln0s', 'X9tNpFbI-tw', 'bSWEDWUPt_E', '78OCBEqfPJc', 'm4tRIO-MtUs');;

            DELETE yt.* FROM youtube_channel_video_status yt
            INNER JOIN `ROLLBACK-DISTRO-1790_youtube_channel_video_status` rp1790 ON rp1790.youtube_video_id = yt.youtube_video_id;;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">

                INSERT INTO youtube_channel_video_status
                SELECT * FROM `ROLLBACK-DISTRO-1790_youtube_channel_video_status`;;

                DROP TABLE `ROLLBACK-DISTRO-1790_youtube_channel_video_status`;;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
