<?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="KDH-255_clean_backfill_subaccounts:1" author="npatel">
		<neo4j:cypher>
           CALL apoc.periodic.iterate(
                'MATCH (:Vendor)-[rel:OWNS]->(:Subaccount) RETURN rel',
                'detach delete rel',
                {batchSize:1000, iterateList:true, parallel:false, concurrency:1}
            );
        </neo4j:cypher>
	</changeSet>
</databaseChangeLog>
