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

            UPDATE video_encoding_profile SET description = 'Mezzanine Feature for Film and TV' WHERE encoding_profile_id = 328;;
            UPDATE video_encoding_profile SET description = 'Mezzanine Trailer for Film and TV' WHERE encoding_profile_id = 329;;

            INSERT INTO dms_encoding_profile ( dms_master_master_id, encoding_profile_id, filename, delivery_location, required, order_type, product_type_id, extension, video_image_cat_id )
            VALUES
            ( 182, 258, '{upc}_{release_name_no_space}.jpg', '{upc}', 'Y', 'release', 2, 'jpg', 5 ),
            ( 182, 315, '{upc}_{release_name_no_space}.xml', '{upc}', 'Y', 'release', 2, 'xml', NULL ),
            ( 182, 328, '{upc}_{release_name_no_space}.mov', '{upc}', 'Y', 'release', 2, 'mov', NULL ),
            ( 182, 318, '{upc}_{release_name_no_space}_caption.scc', '{upc}', 'Y', 'release', 2, 'scc', NULL ),
            ( 182, 319, '{upc}_{release_name_no_space}_{lang}_subtitle.itt', '{upc}', 'Y', 'release', 2, 'itt', NULL ),
            ( 182, 320, '{upc}_{release_name_no_space}_{lang}_forced.itt', '{upc}', 'Y', 'release', 2, 'itt', NULL ),

            ( 182, 258, '{upc}_{release_name_no_space}.jpg', '{upc}', 'Y', 'release', 3, 'jpg', 3 ),
            ( 182, 315, '{upc}_{release_name_no_space}.xml', '{upc}', 'Y', 'release', 3, 'xml', NULL ),
            ( 182, 328, '{upc}_{release_name_no_space}_feature.mov', '{upc}', 'Y', 'release', 3, 'mov', NULL ),
            ( 182, 329, '{upc}_{release_name_no_space}_trailer.mov', '{upc}', 'Y', 'release', 3, 'mov', NULL ),
            ( 182, 318, '{upc}_{release_name_no_space}_caption.scc', '{upc}', 'Y', 'release', 3, 'scc', NULL ),
            ( 182, 319, '{upc}_{release_name_no_space}_{lang}_subtitle.itt', '{upc}', 'Y', 'release', 3, 'itt', NULL ),
            ( 182, 320, '{upc}_{release_name_no_space}_{lang}_forced.itt', '{upc}', 'Y', 'release', 3, 'itt', NULL )
            ;;


        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                <!-- 19 row(s) affected -->
                UPDATE video_encoding_profile SET description = 'MGO Film and TV' WHERE encoding_profile_id = 328;;
                <!-- 19 row(s) affected -->
                UPDATE video_encoding_profile SET description = 'MGO Trailer' WHERE encoding_profile_id = 329;;
                <!-- 13 row(s) affected -->
                delete from dms_encoding_profile where dms_master_master_id = 182;;

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