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:
@@ -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 .
|
||||
|
||||
|
||||
@@ -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> .
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user