This commit is contained in:
Mathieu Jaumotte 2023-03-08 17:49:13 +01:00
parent 1a6f3953ca
commit f3170d0c87

View File

@ -3,7 +3,7 @@
-- version v0.6 (== version canevas) -- version v0.6 (== version canevas)
-- --
-- /!\ IMPORTANT -- /!\ IMPORTANT
-- * Avant de migrer (UP), il faut d'abord importer les codes postaux !!! -- Avant de migrer (UP), il faut d'abord avoir importé les codes postaux !!!
-- --
@ -138,7 +138,7 @@ INSERT INTO chill_person_social_issue (id, parent_id, title, ordering)
AND parent_id = (SELECT id FROM chill_person_social_issue WHERE title::jsonb = t.parent1)); AND parent_id = (SELECT id FROM chill_person_social_issue WHERE title::jsonb = t.parent1));
-- 14. Complete table WorkSocialActions -- 14. Complete table WorkSocialActions
-- (not yet implemented in canvas)
-- 20. Prepare personnes civility -- 20. Prepare personnes civility
ALTER TABLE import.personnes ADD COLUMN civility1 jsonb; ALTER TABLE import.personnes ADD COLUMN civility1 jsonb;
@ -271,13 +271,12 @@ UPDATE import.personnes SET postcode_id = cmpc.id FROM chill_main_postal_code cm
INSERT INTO chill_main_address (id, postcode_id, street, streetnumber, extra, validFrom) SELECT INSERT INTO chill_main_address (id, postcode_id, street, streetnumber, extra, validFrom) SELECT
address_id, postcode_id, street, streetnumber, extra, CURRENT_DATE address_id, postcode_id, street, streetnumber, extra, CURRENT_DATE
FROM import.personnes WHERE postcode_id IS NOT NULL; FROM import.personnes WHERE postcode_id IS NOT NULL;
SELECT ip.person_id, ip.address_id FROM import.personnes ip ;
-- SELECT ip.id, ip.person_id, ip.firstname, ip.lastname, addr.* FROM chill_main_address addr RIGHT JOIN import.personnes ip ON addr.id = ip.address_id ORDER BY ip.id;
-- ajouter dans chill_person_accompanying_course -- ========================================================================================= --
-- --
-- DOWN -- DOWN