From 8713e635adc26af8dad16c882b3fce61a978a856 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 17 Jan 2023 09:28:55 +0100 Subject: [PATCH] Update migration to avoid data loss --- ...0-delete-duplicate-worship-services.sparql | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/config/migrations/2023/20230106110000-delete-duplicate-worship-services.sparql b/config/migrations/2023/20230106110000-delete-duplicate-worship-services.sparql index e4d3e47..587ecc8 100644 --- a/config/migrations/2023/20230106110000-delete-duplicate-worship-services.sparql +++ b/config/migrations/2023/20230106110000-delete-duplicate-worship-services.sparql @@ -28,7 +28,6 @@ DELETE { OPTIONAL { ?representatieveOrgaan ?bestuur } ?bestuur ?pbestuur ?obestuur . - } } @@ -52,16 +51,16 @@ DELETE { OPTIONAL { ?bestuur ?primarySite. ?primarySite ?pprimarySite ?oprimarySite . - } - OPTIONAL { - ?primarySite ?address. - ?address ?paddress ?oaddress . - } - - OPTIONAL { - ?primarySite ?contactPoint . - ?contactPoint ?pcontactPoint ?ocontactPoint . + OPTIONAL { + ?primarySite ?address. + ?address ?paddress ?oaddress . + } + + OPTIONAL { + ?primarySite ?contactPoint . + ?contactPoint ?pcontactPoint ?ocontactPoint . + } } } } @@ -85,11 +84,11 @@ DELETE { OPTIONAL { ?bestuur ?identifier . ?identifier ?pidentifier ?oidentifier . - } - - OPTIONAL { - ?identifier ?structuredIdentifier. - ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + + OPTIONAL { + ?identifier ?structuredIdentifier. + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } } } }