From 61b88fe602ed8aa8148d2d468c9470a01eb72b0f Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Mon, 20 Jan 2025 11:34:19 +0100 Subject: [PATCH] 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. --- .../20250116085400-contact-points.sparql | 7 ------- .../20250116085600-remove-agents-in-position.sparql | 7 ------- 2 files changed, 14 deletions(-) diff --git a/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085400-contact-points.sparql b/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085400-contact-points.sparql index e7755f4..83d8a6f 100644 --- a/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085400-contact-points.sparql +++ b/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085400-contact-points.sparql @@ -7,13 +7,6 @@ DELETE { GRAPH { ?agent a . - # Ensure the agent comes from Loket initially and will be re-synced - FILTER EXISTS { - GRAPH { - ?agent a . - } - } - OPTIONAL { ?agent ?contactPoint . diff --git a/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085600-remove-agents-in-position.sparql b/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085600-remove-agents-in-position.sparql index 7c80aca..31d2d87 100644 --- a/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085600-remove-agents-in-position.sparql +++ b/config/migrations/2025/20250116085000-sync-from-loket-consumers-bump/20250116085600-remove-agents-in-position.sparql @@ -6,12 +6,5 @@ DELETE { GRAPH { ?agent a ; ?pagent ?oagent . - - # Ensure the agent comes from Loket initially and will be re-synced - FILTER EXISTS { - GRAPH { - ?agent a . - } - } } }