<?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="mdadhania">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
            <!-- Change category from Label Earnings to Orchard Profit Share -->
            UPDATE manual_adjustment
                SET category_id = 73
            WHERE parent_type = 'vendor' 
                AND category_id = 1 
                AND id IN (320726, 320727, 320728, 320729, 320730, 320731, 320732, 320733, 320734,
                    320735, 320736, 320737, 320738, 320739, 320740);;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                <!-- Rollback category to Label Earnings from Orchard Profit Share -->
                UPDATE manual_adjustment
                    SET category_id = 1
                WHERE parent_type = 'vendor' 
                    AND category_id = 73 
                    AND id IN (320726, 320727, 320728, 320729, 320730, 320731, 320732, 320733, 320734,
                        320735, 320736, 320737, 320738, 320739, 320740);;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
