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

           INSERT INTO dms_encoding_profile (dms_master_master_id, encoding_profile_id, filename, delivery_location, hashcode, filesize, required, order_type, width, height, clip_length, product_type_id, extension, video_image_cat_id)
           VALUES 
            (634, 272, "{release_name_under}_{upc}_en_gb.xml", "{upc}", NULL, NULL, "Y", "release", NULL, NULL, 0, 2,"xml", NULL),
            (634, 258, "{release_name_under}_{upc}_en_gb-IMAGE.jpg", "{upc}", NULL, "NULL", "Y", "release", 0, 0, NULL, 2, "jpg", 2),
            (634, 280, "{release_name_under}_{upc}_en_gb-CONTENT.mov", "{upc}", "[MD5]{upc}_{isrc}full", "[CRC32]{upc}_{isrc}full", "Y", "release", NULL, NULL, NULL, 2, "mpg", NULL),
            (634, 318, "{release_name_under}_{upc}_en_gb.scc", "{upc}", NULL, "NULL", "Y", "release", NULL, NULL, NULL, 2, "scc", NULL),
            (634, 272, "{release_name_under}_{upc}_en_gb.xml", "{upc}", NULL, NULL, "Y", "release", NULL, NULL, NULL, 3, "xml", NULL),
            (634, 258, "{release_name_under}_{upc}_en_gb-IMAGE.jpg", "{upc}", NULL, "NULL", "Y", "release", 0, 0, NULL, 3, "jpg", 3),
            (634, 280, "{release_name_under}_{upc}_en_gb-CONTENT.mov", "{upc}", "[MD5]{upc}_{isrc}full", "[CRC32]{upc}_{isrc}full", "Y", "release", NULL, NULL, NULL, 3, "mpg", NULL),
            (634, 281, "{release_name_under}_{upc}_en_gb-PREVIEW.mov", "{upc}", "[MD5]{upc}_{isrc}trailer", "[CRC32]{upc}_{isrc}trailer", "Y", "release", NULL, NULL, NULL, 3,"mpg", NULL),
            (634, 318, "{release_name_under}_{upc}_en_gb.scc", "{upc}" , NULL, "NULL", "Y", "release", NULL, NULL, NULL, 3, "scc", NULL);;

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

                DELETE FROM dms_encoding_profile WHERE dms_master_master_id = 634 AND encoding_profile_id IN (272,258,280,281,318);;
                
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
