59. Link origin to periods

This commit is contained in:
Mathieu Jaumotte 2023-03-11 14:08:56 +01:00
parent 264fdb5888
commit 12f0ec0ae4

View File

@ -407,6 +407,8 @@ FROM import.periodes ip WHERE acp.id = ip.period_id;
-- --
-- Undo 59. -- Undo 59.
UPDATE chill_person_accompanying_period acp SET origin_id = null FROM import.periodes ip WHERE ip.period_id = acp.id;
-- Undo 58. -- Undo 58.
DELETE FROM accompanying_periods_scopes acs USING import.periodes ip WHERE acs.accompanying_period_id = ip.period_id; DELETE FROM accompanying_periods_scopes acs USING import.periodes ip WHERE acs.accompanying_period_id = ip.period_id;