From 16fc4b3a5b257f6e7591a7e92524a6f4b468c406 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Fri, 15 Apr 2022 09:17:54 +0200 Subject: [PATCH] Fix change event --- .../20220415090554-fix-change-event.sparql | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 config/migrations/2022/20220415090554-fix-change-event.sparql 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 + } +}