Adjust flushing migration to delete all mandates

and not only the ones coming from Loket. There is a risk that we delete
too much data here but if that would be the case, the data is
recuperable through the backups by looking at persons and worship
positions that were in OP but not in the worship services landing zone.
This commit is contained in:
Claire Lovisa
2025-01-20 11:34:19 +01:00
parent dae66c97d3
commit 61b88fe602
2 changed files with 0 additions and 14 deletions

View File

@@ -7,13 +7,6 @@ DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?agent a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie> .
# Ensure the agent comes from Loket initially and will be re-synced
FILTER EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/worship-services-sensitive> {
?agent a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie> .
}
}
OPTIONAL {
?agent <http://schema.org/contactPoint> ?contactPoint .

View File

@@ -6,12 +6,5 @@ DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?agent a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie> ;
?pagent ?oagent .
# Ensure the agent comes from Loket initially and will be re-synced
FILTER EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/worship-services-sensitive> {
?agent a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie> .
}
}
}
}