<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:neo4j="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-latest.xsd">
    <changeSet id="WAR-2396_moneyhub_profiles_roles_fix:1" author="epohrebna">
        <neo4j:cypher>
            <![CDATA[
            MATCH (p:Profile {profileType: 'MoneyhubProfile'})
            WHERE p.roles = []
            SET 
                p.roles = ['accounting'],
                p.lastModifiedAt = datetime(),
                p.lastModifiedBy = 'database/WAR-2396_moneyhub_profiles_roles_fix:1'
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
