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 . }