<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="PLATFORM-2308_update_push_notification_subscriptions:1" author="pdumoulin" run-on-change="true">
        <query>
            MATCH(s:Subscription { feedType : 'socialSpike'})
            SET s.followedEntity = 'GlobalParticipant';
        </query>
        <query>
            MATCH(s:Subscription { feedType : 'playlistPlacements'})
            SET s.followedEntity = 'GlobalSoundRecording';
        </query>
        <query>
            MATCH(s:Subscription { feedType : 'trendingTracks'})
            SET s.followedEntity = 'GlobalSoundRecording';
        </query>
        <query>
            CREATE(s:Subscription { feedType : 'playlistPlacements' , followedEntity : 'Vendor' , notificationType : 'pushNotifications'});
        </query>
        <query>
            CREATE(s:Subscription { feedType : 'trendingTracks' , followedEntity : 'Vendor' , notificationType : 'pushNotifications'});
        </query>
    </changeset>
</changelog>
