Skip to content

Commit 788aacf

Browse files
committed
Remove incorrect role rewrites
1 parent a95ccac commit 788aacf

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

sql/2025-09-22_org_membership_roles.sql

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
-- Org membership is now associated with a specific role within the org, this simplifies things,
22
-- makes the data more consistent, no need to rely on triggers, and makes it much easier to display in the UI.
33

4-
-- Update the role permissions, some roles had an incorrect 'org:create_project' rather than 'project:create' permission
5-
UPDATE roles
6-
SET permissions = ARRAY['org:view', 'org:manage', 'org:admin', 'team:view', 'team:manage', 'project:view', 'project:create', 'project:manage', 'project:contribute', 'project:delete', 'project:maintain']
7-
WHERE ref = 'org_admin'
8-
;
9-
10-
UPDATE roles
11-
SET permissions = ARRAY['org:view', 'org:manage', 'org:admin', 'org:delete', 'org:change_owner', 'team:view', 'team:manage', 'project:view', 'project:create', 'project:manage', 'project:contribute', 'project:delete', 'project:maintain']
12-
WHERE ref = 'org_owner'
13-
;
14-
15-
-- After migrating, this will no longer be used.
16-
UPDATE roles
17-
SET permissions = ARRAY['org:view', 'org:edit', 'team:view', 'project:view', 'project:create', 'project:maintain', 'project:contribute']
18-
WHERE ref = 'org_default'
19-
;
20-
214
ALTER TABLE org_members
225
ADD COLUMN role_id UUID REFERENCES roles(id) NULL;
236

0 commit comments

Comments
 (0)