<?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-5700_alina_kurs_fansifter_onboarding:1" author="ozhovnuvatyi">
        <neo4j:cypher>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p:Profile {profileType: "AudienceProfile"})
                WHERE i.id = 'a8c04b72-eb8a-46da-8e16-8f5286cef004'
                SET p.fullCatalogAccess = true,
                p.lastModifiedBy = 'database/FS-5700_alina_kurs_fansifter_onboarding', p.lastModifiedAt = datetime()
                WITH p
                MATCH (v:Vendor {id: '*'})
                MERGE (p)-[access:HAS_ACCESS_TO]->(v)
                SET access.createdAt = datetime();
            ]]>
        </neo4j:cypher>
    </changeSet>
</databaseChangeLog>
