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

            ALTER TABLE booked_vendor_contract_snapshot 
            ADD COLUMN orchard_compilation_agreement ENUM('Y','N') DEFAULT 'N' NULL COMMENT 'Indicates the agreement FOR Orchard Compilation.' AFTER apply_fx_spread, 
            ADD COLUMN orchard_compilation_split FLOAT NULL COMMENT 'Orchard Compilation Split(Label SHARE).' AFTER orchard_compilation_agreement, 
            ADD COLUMN orchard_compilation_authorization_required ENUM('Y','N') DEFAULT 'N' NULL COMMENT 'Indicates whether Authorization Required FOR Orchard Compilation.' AFTER orchard_compilation_split;;

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

                USE art_relations;;

                ALTER TABLE booked_vendor_contract_snapshot 
                DROP COLUMN orchard_compilation_agreement,
                DROP COLUMN orchard_compilation_split,
                DROP COLUMN orchard_compilation_authorization_required;;

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