<?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-3458_youtube_channel_video_status`
            SELECT * FROM youtube_channel_video_status
            WHERE youtube_video_id IN ('KE_grs7l0GE', 'BFFzwcqwqzw', 'jlnvQih1rb0', '_sI5ZFmxASE', 'A6HRDp0DNKs', 'BWPkbHjV_TU', 'ZVNWR4nuerg', 'sV5NhbLOyK4', 'CmSl4-UaN04', 'Ie892LpNvzU', 't9G6J_-elns', 'Jt8CqPTEvXA', 'eot9HL8LkyI', 't_yWYP9UboI', 'UbZ6t4CLuls', 'ACW-EKk8Yfg', 'ylPyEva4_9I', '-f9okfhGHVM', 'LPgklXO8QOg', 'TUg6-RBhjzI');;

            DELETE yt.* FROM youtube_channel_video_status yt
            INNER JOIN `ROLLBACK-DISTRO-3458_youtube_channel_video_status` rp3458 ON rp3458.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-3458_youtube_channel_video_status`;;

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