<?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="FS-5846_troy_denkinger_fansifter_full_access:1" author="ozhovnuvatyi">
        <neo4j:cypher>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p:Profile {profileType: "AudienceProfile"})
                WHERE i.id = 'fec31baf-8873-4a87-a88e-c06f13f76e84'
                SET p.fullCatalogAccess = true,
                p.lastModifiedBy = 'database/FS-5846_troy_denkinger_fansifter_full_access', p.lastModifiedAt = datetime()
                WITH p
                MATCH (v:Vendor {id: '*'})
                MERGE (p)-[access:HAS_ACCESS_TO]->(v)
                SET access.createdAt = datetime();
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
