From 12f0ec0ae48de9321a397cdc7fbc0a91b52e8860 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sat, 11 Mar 2023 14:08:56 +0100 Subject: [PATCH] 59. Link origin to periods --- sql/import.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/import.sql b/sql/import.sql index 6aeb3dd..871ef03 100644 --- a/sql/import.sql +++ b/sql/import.sql @@ -407,6 +407,8 @@ FROM import.periodes ip WHERE acp.id = ip.period_id; -- -- Undo 59. +UPDATE chill_person_accompanying_period acp SET origin_id = null FROM import.periodes ip WHERE ip.period_id = acp.id; + -- Undo 58. DELETE FROM accompanying_periods_scopes acs USING import.periodes ip WHERE acs.accompanying_period_id = ip.period_id;