<?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">

            UPDATE encoding_profile
                SET description = CASE encoding_profile_id
                    WHEN 243 THEN 'Tif video image'
                    WHEN 250 THEN 'Gif video image'
                    WHEN 258 THEN 'JPG video image'
                    WHEN 318 THEN 'Closed Captions'
                    WHEN 319 THEN 'Subtitles'
                    WHEN 320 THEN 'Forced Subtitles'
                END;;

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

            UPDATE encoding_profile
                SET description = CASE encoding_profile_id
                    WHEN 243 THEN 'tif image'
                    WHEN 250 THEN 'Video gif'
                    WHEN 258 THEN 'Video JPG'
                    WHEN 318 THEN 'Film closed captioning'
                    WHEN 319 THEN 'subtitles for Itunes'
                    WHEN 320 THEN 'forced subtitles for Itunes'
                END;;

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