Skip to content

Commit 0e9270b

Browse files
committed
mend
1 parent 51de1f4 commit 0e9270b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coderd/database/migrations/migrate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func TestMigrateUpWithFixtures(t *testing.T) {
352352

353353
for _, table := range tables {
354354
var count int
355-
err = db.QueryRowContext(ctx, "SELECT COUNT(*) FROM "+table).Scan(&count)
355+
err = db.QueryRowContext(ctx, "SELECT COUNT(*) FROM"+table).Scan(&count)
356356
require.NoError(t, err)
357357

358358
if tt.useStats {

coderd/database/migrations/testdata/fixtures/000189_workspace_app_order.up.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
-- This is a deleted user that shares the same username and linked_id as the existing user below.
22
-- Any future migrations need to handle this case.
3-
INSERT INTO public.users(id, email, username, hashed_password, created_at, updated_at, status, rbac_roles, is_deleted)
3+
INSERT INTO public.users(id, email, username, hashed_password, created_at, updated_at, status, rbac_roles, deleted)
44
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;
55
INSERT INTO public.organization_members VALUES ('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;
66
INSERT INTO public.user_links(user_id, login_type, linked_id, oauth_access_token)
77
VALUES('a0061a8e-7db7-4585-838c-3116a003dd21', 'github', '100', '');
88

99

10-
INSERT INTO public.users(id, email, username, hashed_password, created_at, updated_at, status, rbac_roles, is_deleted)
10+
INSERT INTO public.users(id, email, username, hashed_password, created_at, updated_at, status, rbac_roles, deleted)
1111
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;
1212
INSERT INTO public.organization_members VALUES ('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;
1313
INSERT INTO public.user_links(user_id, login_type, linked_id, oauth_access_token)

0 commit comments

Comments
 (0)