<?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="bhavinrshah">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
        <![CDATA[
            CREATE TABLE IF NOT EXISTS `ROLLBACK-release_pricing_tier_country`
                SELECT id
                    FROM release_pricing_tier_country
                        WHERE country_id = 195;;
            
            UPDATE release_pricing_tier_country 
                SET country_id = 192
                    WHERE country_id = 195;;
        ]]>
        </sql>
        <rollback>
            <![CDATA[
                UPDATE release_pricing_tier_country rptc
                    INNER JOIN `ROLLBACK-release_pricing_tier_country` rrptc ON rptc.id = rrptc.id
                        SET rptc.country_id = 195;;
            ]]>
        </rollback>
    </changeSet>
</databaseChangeLog>