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 {