mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: remove UpsertCustomRole in favor of Insert + Update (#14217)
* chore: remove UpsertCustomRole in favor of Insert + Update --------- Co-authored-by: Jaayden Halko <jaayden.halko@gmail.com>
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
ALTER TABLE custom_roles
|
||||
DROP CONSTRAINT custom_roles_unique_key;
|
||||
|
||||
ALTER TABLE custom_roles
|
||||
ADD CONSTRAINT custom_roles_pkey PRIMARY KEY (name);
|
@ -0,0 +1,6 @@
|
||||
ALTER TABLE custom_roles
|
||||
DROP CONSTRAINT custom_roles_pkey;
|
||||
|
||||
-- Roles are unique to the organization.
|
||||
ALTER TABLE custom_roles
|
||||
ADD CONSTRAINT custom_roles_unique_key UNIQUE (name, organization_id);
|
Reference in New Issue
Block a user