mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
Organization member's table is already scoped to an organization. Rolename should avoid having the org_id appended. Wipes all existing organization role assignments, which should not be used anyway.
8 lines
360 B
SQL
8 lines
360 B
SQL
-- The default was 'organization-member', but we imply that in the
|
|
-- 'GetAuthorizationUserRoles' query.
|
|
ALTER TABLE ONLY organization_members ALTER COLUMN roles SET DEFAULT '{}';
|
|
|
|
-- No one should be using organization roles yet. If they are, the names in the
|
|
-- database are now incorrect. Just remove them all.
|
|
UPDATE organization_members SET roles = '{}';
|