<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="CDAM-1830_remove_bad_lsr:1" author="rpapat" run-always="true">
        <cypherquery>
            <![CDATA[
                MATCH (p:Product:Orchard)
                WHERE p.upc IN ['195081432779', '7071245136666', '7350063071572', '7350063071602', '7350063071695', '7350063071879', '7350063072937', '7350063072975', '7350063073354', '7350063073446', '7350063073590', '7350063075037', '7350063075914', '7350063076157', '7350063076225', '7350063076393']
                MATCH (p)--(t:Track:Orchard)-[rel:IS_PLACEMENT_OF]->(lsr:LabelSoundRecording)<-[rel1:REPRESENTS]-(gsr:GlobalSoundRecording)
                WHERE lsr.subaccountId = 0
                DELETE rel
                WITH t
                MATCH (t)-[rel1:IS_PLACEMENT_OF]-(lsr1:LabelSoundRecording)
                WHERE lsr1.subaccountId = 51746
                SET lsr1.name = t.name
                WITH lsr1
                MATCH (gsr:GlobalSoundRecording {isrc: lsr1.isrc})
                MERGE (gsr)-[:REPRESENTS]->(lsr1)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
