diff --git a/config/migrations/2022/20220415090554-fix-change-event.sparql b/config/migrations/2022/20220415090554-fix-change-event.sparql new file mode 100644 index 0000000..b150023 --- /dev/null +++ b/config/migrations/2022/20220415090554-fix-change-event.sparql @@ -0,0 +1,36 @@ +# Update status of the bestuurseenheden as well as the resulting status of the change event + +PREFIX regorg: +PREFIX lblodOrg: + +DELETE { + GRAPH ?g { + + lblodOrg:resulterendeStatus . # Actief + + + regorg:orgStatus . # Niet Actief + + lblodOrg:resulterendeStatus . # Niet Actief + } +} INSERT { + GRAPH ?g { + + lblodOrg:resulterendeStatus . # Niet Actief + + + regorg:orgStatus . # Actief + + lblodOrg:resulterendeStatus . # Actief + } +} WHERE { + GRAPH ?g { + + lblodOrg:resulterendeStatus . # Actief + + + regorg:orgStatus . # Niet Actief + + lblodOrg:resulterendeStatus . # Niet Actief + } +}