<?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-6274_christopher_sodengren_vendor_star:1" author="ozhovnuvatyi">
        <neo4j:cypher>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p:Profile {profileType: "AudienceProfile"})
                WHERE i.id = 'ad876202-fc94-4235-af8e-5897372d1423'
                SET p.fullCatalogAccess = true,
                p.lastModifiedBy = 'database/FS-6274_christopher_sodengren_vendor_star', p.lastModifiedAt = datetime()
                WITH p
                MATCH (v:Vendor {id: '*'})
                MERGE (p)-[access:HAS_ACCESS_TO]->(v)
                SET access.createdAt = datetime();
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
