<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="DS-4109_backfill_has_channel:1" author="borisuvarov" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (c:Channel)
                WITH c
          WHERE c.artistId IS NOT NULL
          WITH c
                    MATCH (n:ArtistInfo {id: c.artistId})<-[:HAS_ARTIST]-(p:Project)-[:CREATED_FOR_PARTICIPANT]->(lp:LabelParticipant)<-[:REPRESENTS]-(gp:GlobalParticipant) 
                    MERGE (gp)-[:HAS_CHANNEL]->(c)
            ]]>
        </query>
    </changeset>
</changelog>
