<?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="pshrivastava">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
            ALTER TABLE art_relations.vendor_proposed_term
            ADD COLUMN reserve_rate FLOAT(10,2) UNSIGNED NOT NULL DEFAULT 0,
            ADD COLUMN number_of_months_before_payout tinyint(1) UNSIGNED DEFAULT 0,
            ADD COLUMN number_of_installments tinyint(1) UNSIGNED DEFAULT 0,
            ADD COLUMN contract_terms TEXT;;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                ALTER TABLE art_relations.vendor_proposed_term
                DROP COLUMN reserve_rate,
                DROP COLUMN number_of_months_before_payout,
                DROP COLUMN number_of_installments,
                DROP COLUMN contract_terms;;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
