From a8dbf8b986f9459abbf27d7c9f6c1ff9e5126b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 19 Nov 2021 23:33:13 +0100 Subject: [PATCH] fix view person_current_address: address must exists --- .../ChillPersonBundle/migrations/Version20211119215630.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20211119215630.php b/src/Bundle/ChillPersonBundle/migrations/Version20211119215630.php index 45d76f14c..d7aa850ee 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20211119215630.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20211119215630.php @@ -23,8 +23,8 @@ final class Version20211119215630 extends AbstractMigration CASE WHEN cphm.startdate > COALESCE(cma.validfrom, '-infinity'::date) THEN cphm.startdate ELSE cma.validfrom END AS valid_from, CASE WHEN COALESCE(cphm.enddate, 'infinity'::date) < COALESCE(cma.validto, 'infinity'::date) THEN cphm.enddate ELSE cma.validto END AS valid_to FROM chill_person_household_members AS cphm - LEFT JOIN chill_person_household_to_addresses AS cphta ON cphta.household_id = cphm.household_id - LEFT JOIN chill_main_address AS cma ON cphta.address_id = cma.id + JOIN chill_person_household_to_addresses AS cphta ON cphta.household_id = cphm.household_id + JOIN chill_main_address AS cma ON cphta.address_id = cma.id WHERE cphm.sharedhousehold IS TRUE AND