<?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">
            USE art_relations;;

            UPDATE releases SET
                artist_id = 878152
            WHERE release_id IN(1388360, 1468472, 1513356, 1519335, 1532810, 1525265, 1557953, 1553773, 1577149, 1599379, 1605896, 1680565,
            1679953, 1680559, 1680556, 1689046, 1751097, 1750738, 1740287, 1749990, 1749809, 1740286, 1743447, 1752415, 1822133, 1881385,
            1525252, 1525249, 1525254, 1525258, 1563986, 1573907);;
            
            UPDATE project SET
                artist_id = 878152
            WHERE project_id IN(3048573, 3126945, 3154203, 3162671, 3169061, 3172371, 3193534, 3203924, 3208591, 3229216, 3235365, 3295497,
            3295574, 3296103, 3296132, 3300478, 3379800, 3379974, 3380110, 3380176, 3380177, 3380383, 3380385, 3380545, 3406592, 3462207,
            3575001, 3575002, 3575003, 3575004, 3575012, 3575014);;
        </sql>
        <rollback>
            <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
                USE art_relations;;
                
                UPDATE releases SET
                    artist_id = 675402
                WHERE release_id IN(1388360, 1468472, 1513356, 1519335, 1532810, 1525265, 1557953, 1553773, 1577149, 1599379, 1605896, 1680565,
                1679953, 1680559, 1680556, 1689046, 1751097, 1750738, 1740287, 1749990, 1749809, 1740286, 1743447, 1752415, 1822133, 1881385,
                1525252, 1525249, 1525254, 1525258, 1563986, 1573907);;
            
                UPDATE project SET
                    artist_id = 675402
                WHERE project_id IN(3048573, 3126945, 3154203, 3162671, 3169061, 3172371, 3193534, 3203924, 3208591, 3229216, 3235365, 3295497,
                3295574, 3296103, 3296132, 3300478, 3379800, 3379974, 3380110, 3380176, 3380177, 3380383, 3380385, 3380545, 3406592, 3462207,
                3575001, 3575002, 3575003, 3575004, 3575012, 3575014);;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>
