Files
coder/coderd/database/migrations/000215_scoped_org_db_roles.down.sql
Steven Masley 8f62311f00 chore: remove organization_id suffix from org_member roles in database (#13473)
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.
2024-06-05 11:25:02 -05:00

2 lines
94 B
SQL

ALTER TABLE ONLY organization_members ALTER COLUMN roles SET DEFAULT '{organization-member}';