From 57e09e9b470fec06d949fb958c647bea36330822 Mon Sep 17 00:00:00 2001 From: Elias Papanikitas Date: Fri, 17 Nov 2023 11:41:06 +0100 Subject: [PATCH] migration OK --- .../20231112161533-update-phone-numbers.sparql | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config/migrations/2023/20231112161533-update-phone-numbers.sparql b/config/migrations/2023/20231112161533-update-phone-numbers.sparql index 61556c9..ce1c0ed 100644 --- a/config/migrations/2023/20231112161533-update-phone-numbers.sparql +++ b/config/migrations/2023/20231112161533-update-phone-numbers.sparql @@ -1,13 +1,15 @@ DELETE { + GRAPH ?g { ?s ?o . + } } INSERT { - GRAPH { + GRAPH ?g { ?s ?newPhoneNumber . } } WHERE { - GRAPH { + GRAPH ?g { ?s ?o . } @@ -15,17 +17,19 @@ WHERE { BIND(REPLACE(STR(?o),"[. - /]","") AS ?removedSpaces) . BIND (CONCAT('tel:+32', SUBSTR(?removedSpaces, 2)) as ?newPhoneNumber) } - +; DELETE { + GRAPH ?g { ?s ?o . + } } INSERT { - GRAPH { + GRAPH ?g { ?s ?newPhoneNumber . } } WHERE { - GRAPH { + GRAPH ?g { ?s ?o . }