<?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">
            INSERT INTO rating_advisory_system (system, video_type, type, code, description) VALUES
            ('uk-tv','tv','rating','U','U rating'),('uk-tv','tv','rating','PG','PG rating'),
            ('uk-tv','tv','rating','12','12 rating'),('uk-tv','tv','rating','15','15 rating'),
            ('uk-tv','tv','rating','18','18 rating'),('uk-tv','tv','rating','NR','NR rating'),
            ('uk-tv','tv','rating','TBC','TBC rating');;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                DELETE FROM rating_advisory_system WHERE system = 'uk-tv' AND video_type ='tv'
                AND code IN ('U','PG','12','15','18','NR','TBC');;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
