From 1cc1b83435c486feffa6db76076ae0ea57a07c8f Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 10 Mar 2023 12:45:23 +0100 Subject: [PATCH] add gendercomment in person insertion --- sql/import.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/import.sql b/sql/import.sql index 0a1744d..0b67939 100644 --- a/sql/import.sql +++ b/sql/import.sql @@ -254,10 +254,10 @@ INSERT INTO chill_person_person ( , firstname, lastname, birthdate, place_of_birth, memo, email, contactinfo, phonenumber, mobilenumber, numberofchildren, gender, deathdate, proxyaccompanyingperiodopenstate , createdat, updatedat, createdby_id, updatedby_id , center_id + , gendercomment_comment, gendercomment_userid, gendercomment_date /* , maritalstatusdate , maritalstatuscomment_comment, maritalstatuscomment_userid, maritalstatuscomment_date - , gendercomment_comment, gendercomment_userid, gendercomment_date , acceptsms, acceptemail */ ) SELECT @@ -270,10 +270,10 @@ INSERT INTO chill_person_person ( , CURRENT_DATE, CURRENT_DATE -- createdat, updatedat , (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 + , TRIM(gendercomment), (SELECT distinct(first_value(id) OVER(ORDER BY id)) FROM users), CURRENT_DATE /* , -- maritalstatusdate , -- maritalstatuscomment_comment, maritalstatuscomment_userid, maritalstatuscomment_date - , -- gendercomment_comment, gendercomment_userid, gendercomment_date , -- acceptsms, acceptemail */ FROM import.personnes ip;