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

            INSERT INTO dms_encoding_profile (dms_master_master_id, encoding_profile_id, filename,delivery_location, required, id3_tag, order_type, width, height, clip_length, product_type_id, extension, video_image_cat_id) VALUES
            (611, 258, '{upc}_{release_name_no_space}.jpg', '{upc}', 'Y', 'N', 'release', 1400, 2100, 0, 3, 'jpg', 3),
            (611, 323, '{upc}_{release_name_no_space}.csv', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 3, 'csv', NULL),
            (611, 330, '{upc}_{release_name_no_space}_feature.mov', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 3, 'mov', NULL),
            (611, 331, '{upc}_{release_name_no_space}_trailer.mov', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 3, 'mov', NULL),
            (611, 318, '{upc}_{release_name_no_space}_caption.scc', '{upc}','Y', 'N', 'release', NULL, NULL, NULL, 3, 'scc', NULL),
            (611, 319, '{upc}_{release_name_no_space}_subtitle.itt', '{upc}','Y', 'N', 'release', NULL, NULL, NULL, 3, 'itt', NULL),
            (611, 322, '{upc}_{release_name_no_space}.csv', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 2, 'csv', NULL),
            (611, 318, '{upc}_{release_name_no_space}_caption.scc', '{upc}','Y', 'N', 'release', NULL, NULL, NULL, 2, 'scc', NULL),
            (611, 330, '{upc}_{release_name_no_space}.mov', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 2, 'mov', NULL),
            (611, 258, '{upc}_{release_name_no_space}.jpg', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 2, 'jpg', 5),
            (611, 319, '{upc}_{release_name_no_space}_subtitle.itt', '{upc}', 'Y', 'N', 'release', NULL, NULL, NULL, 2, 'itt', NULL);;


        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">

                DELETE FROM dms_encoding_profile WHERE dms_master_master_id = 611 AND encoding_profile_id IN (258, 323, 330, 331, 318, 319, 322);;

            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
