@@ -45,21 +45,21 @@ class sql {
45
45
INSERT INTO users (
46
46
user_id,
47
47
user_numeric_id,
48
- user_firstname ,
49
- user_lastname ,
50
- user_preferred_firstname ,
48
+ user_givenname ,
49
+ user_familyname ,
50
+ user_preferred_givenname ,
51
51
user_email
52
52
) VALUES ($1, $2, $3, $4, $5, $6)
53
53
ON CONFLICT (user_id) DO UPDATE
54
54
SET user_numeric_id=EXCLUDED.user_numeric_id,
55
- user_firstname =EXCLUDED.user_firstname ,
56
- user_lastname =EXCLUDED.user_lastname ,
57
- user_preferred_firstname =
55
+ user_givenname =EXCLUDED.user_givenname ,
56
+ user_familyname =EXCLUDED.user_familyname ,
57
+ user_preferred_givenname =
58
58
CASE WHEN users.user_updated=FALSE
59
59
AND users.instructor_updated=FALSE
60
- AND COALESCE(users.user_preferred_firstname , '')=''
61
- THEN EXCLUDED.user_preferred_firstname
62
- ELSE users.user_preferred_firstname
60
+ AND COALESCE(users.user_preferred_givenname , '')=''
61
+ THEN EXCLUDED.user_preferred_givenname
62
+ ELSE users.user_preferred_givenname
63
63
END,
64
64
user_email=
65
65
CASE WHEN COALESCE(EXCLUDED.user_email, '')<>''
0 commit comments