diff --git a/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql b/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql
index 8431ca5..f820de3 100644
--- a/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql
+++ b/config/migrations/2024/20240315104123-add-fusion-event-pz-aalter-maldegem.sparql
@@ -4,7 +4,9 @@ PREFIX ch:
PREFIX lblodOrg:
PREFIX ext:
PREFIX mu:
+PREFIX regorg:
+# Add fusion change event
INSERT {
GRAPH {
?changeEvent a org:ChangeEvent ;
@@ -53,3 +55,19 @@ INSERT {
BIND(SHA256(CONCAT(STR(?originalAalter), STR(?originalMaldegem), STR(?resultingOrganization), "fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) .
BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) .
}
+;
+# Set merged PZs to not active
+DELETE {
+ GRAPH {
+ ?s regorg:orgStatus # Active
+ }
+} INSERT {
+ GRAPH {
+ ?s regorg:orgStatus # Not active
+ }
+} WHERE {
+ VALUES ?s {
+ # PZ Aalter
+ #PZ Maldegem
+ }
+}