<?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="Backfill_profile_subscriptions:1" author="jfeldman">
        <query>
            MATCH (i:Identity)-[rd:HAS_DEVICE]->(d:Device), (i)-[rp:HAS_PROFILE]->(p:Profile), (s:Subscription) WHERE s.notificationType = "pushNotifications" and s.feedType = "socialSpike"
            MERGE ((p)-[rs:HAS_SUBSCRIPTION {dateCreated: localdatetime()}]->(s)) return p
        </query>
    </changeset>
</changelog>
