Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4d32024

Browse files
committed
chore: add database test fixture to insert non-unique linked_ids
1 parent78e90d6 commit4d32024

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- This is a deleted user that shares the same username and linked_id as the existing user below.
2+
-- Any future migrations need to handle this case.
3+
INSERT INTOpublic.users(id, email, username, password, created_at, updated_at, status, rbac_roles, is_deleted)
4+
VALUES ('a0061a8e-7db7-4585-838c-3116a003dd21','githubuser@coder.com','githubuser','\x','2022-11-02 13:05:21.445455+02','2022-11-02 13:05:21.445455+02','active','{}', true)ON CONFLICT DO NOTHING;
5+
INSERT INTOpublic.organization_membersVALUES ('a0061a8e-7db7-4585-838c-3116a003dd21','bb640d07-ca8a-4869-b6bc-ae61ebb2fda1','2022-11-02 13:05:21.447595+02','2022-11-02 13:05:21.447595+02','{}')ON CONFLICT DO NOTHING;
6+
INSERT INTOpublic.user_links(user_id, login_type, linked_id, oauth_access_token)
7+
VALUES('a0061a8e-7db7-4585-838c-3116a003dd21','github','100','');
8+
9+
10+
INSERT INTOpublic.users(id, email, username, password, created_at, updated_at, status, rbac_roles, is_deleted)
11+
VALUES ('fc1511ef-4fcf-4a3b-98a1-8df64160e35a','githubuser@coder.com','githubuser','\x','2022-11-02 13:05:21.445455+02','2022-11-02 13:05:21.445455+02','active','{}', false)ON CONFLICT DO NOTHING;
12+
INSERT INTOpublic.organization_membersVALUES ('fc1511ef-4fcf-4a3b-98a1-8df64160e35a','bb640d07-ca8a-4869-b6bc-ae61ebb2fda1','2022-11-02 13:05:21.447595+02','2022-11-02 13:05:21.447595+02','{}')ON CONFLICT DO NOTHING;
13+
INSERT INTOpublic.user_links(user_id, login_type, linked_id, oauth_access_token)
14+
VALUES('fc1511ef-4fcf-4a3b-98a1-8df64160e35a','github','100','');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp