From 08e87503f0d5bb856b29b32a53d14d8f801489a6 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 16 Sep 2025 10:52:37 +0200 Subject: [PATCH] Correction: do not attribute center_id = 1 to person --- sql/import.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/import.sql b/sql/import.sql index 16768ba..3d5bad8 100755 --- a/sql/import.sql +++ b/sql/import.sql @@ -279,7 +279,7 @@ INSERT INTO chill_person_person ( , COALESCE(TRIM(firstname),''), UPPER(TRIM(lastname)), birthdate1, TRIM(placeofbirth1), TRIM(memo1), TRIM(email), TRIM(contactinfo), phonenumber1, mobilenumber1, numberofchildren1, deathdate1, false , CURRENT_DATE, CURRENT_DATE -- createdat, updatedat (= import date) , (SELECT distinct(first_value(id) OVER(ORDER BY id)) FROM users), (SELECT distinct(first_value(id) OVER(ORDER BY id)) FROM users) -- createdby_id, updatedby_id - , (SELECT distinct(first_value(id) OVER(ORDER BY id)) FROM centers) -- center_id + , NULL -- center_id should be null, deprecated by chill_person_person_center_history , (SELECT g.id FROM chill_main_gender g WHERE g.gendertranslation = ip.gender1) , TRIM(gendercomment), (SELECT distinct(first_value(id) OVER(ORDER BY id)) FROM users), date(date_trunc('year', CURRENT_DATE)) --gendercomment_ /*