From 1fbe0f2fda20f5e38aad4babab5deb33e794f628 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Thu, 4 May 2023 14:59:09 +0200 Subject: [PATCH] Fix migration removing too much data (#272) --- ...330164606-remove-ministers-that-will-get-synced.sparql} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename config/migrations/2023/20230330164600-sync-loket-to-op/{20230330164605-remove-ministers-that-will-get-synced.sparql => 20230330164606-remove-ministers-that-will-get-synced.sparql} (75%) diff --git a/config/migrations/2023/20230330164600-sync-loket-to-op/20230330164605-remove-ministers-that-will-get-synced.sparql b/config/migrations/2023/20230330164600-sync-loket-to-op/20230330164606-remove-ministers-that-will-get-synced.sparql similarity index 75% rename from config/migrations/2023/20230330164600-sync-loket-to-op/20230330164605-remove-ministers-that-will-get-synced.sparql rename to config/migrations/2023/20230330164600-sync-loket-to-op/20230330164606-remove-ministers-that-will-get-synced.sparql index 76dfb29..6b72a8e 100644 --- a/config/migrations/2023/20230330164600-sync-loket-to-op/20230330164605-remove-ministers-that-will-get-synced.sparql +++ b/config/migrations/2023/20230330164600-sync-loket-to-op/20230330164606-remove-ministers-that-will-get-synced.sparql @@ -1,13 +1,14 @@ +PREFIX org: PREFIX ere: DELETE { GRAPH { - ?ministerPosition ?p ?o . - ?worshipService ?ministerPosition . + ?minister ?p ?o . } } WHERE { GRAPH { - ?ministerPosition a ere:PositieBedienaar ; + ?minister a ere:RolBedienaar ; + org:holds ?ministerPosition ; ?p ?o . VALUES ?status {