Skip to content

Commit 7463a28

Browse files
refactor: remove middlename and nationality fields from user insert statements in seed script
1 parent 5b59399 commit 7463a28

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

apps/backend/db_patches/db_seeds/0002_InstrumentScientiests.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ $DO$
33
BEGIN
44

55
INSERT INTO users(
6-
user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
7-
telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder)
8-
VALUES (100, '', '1', 'Instrument', 'Scientist1', 'instr.sci1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci1@local.host', '', '', NOW(), NOW(), 1, 169, false);
6+
user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
7+
telephone, created_at, updated_at, institution_id, placeholder)
8+
VALUES (100, '', 'Instrument', 'Scientist1', 'instr.sci1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci1@local.host', '', NOW(), NOW(), 1, false);
99

1010
INSERT INTO users(
11-
user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
12-
telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder)
13-
VALUES (101, '', '2', 'Instrument', 'Scientist2', 'instr.sci2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci2@local.host', '', '', NOW(), NOW(), 1, 169, false);
11+
user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
12+
telephone, created_at, updated_at, institution_id, placeholder)
13+
VALUES (101, '', 'Instrument', 'Scientist2', 'instr.sci2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci2@local.host', '', NOW(), NOW(), 1, false);
1414

1515
-- user account with every roles except instrument scientist and user officer
1616
INSERT INTO users(
17-
user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
18-
telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder)
19-
VALUES (102, '', 'Instrument', 'Not', 'Scientist', 'not.instr.sci', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'not.instr.sci@local.host', '', '', NOW(), NOW(), 1, 169, false);
17+
user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email,
18+
telephone, created_at, updated_at, institution_id, placeholder)
19+
VALUES (102, '', 'Not', 'Scientist', 'not.instr.sci', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'not.instr.sci@local.host', '', NOW(), NOW(), 1, false);
2020

2121
INSERT INTO role_user(
2222
role_id, user_id)

0 commit comments

Comments
 (0)