Skip to content

Commit 3aa2a23

Browse files
committed
add comment on migration
1 parent 2878c21 commit 3aa2a23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/migrations/000241_group_members_view.up.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CREATE VIEW
22
group_members_expanded
33
AS
4+
-- If the group is a user made group, then we need to check the group_members table.
5+
-- If it is the "Everyone" group, then we need to check the organization_members table.
46
WITH all_members AS (
57
SELECT user_id, group_id FROM group_members
68
UNION

0 commit comments

Comments
 (0)