We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cac69 commit fb4f80fCopy full SHA for fb4f80f
1 file changed
coderd/database/migrations/000034_remove_admin_role.up.sql
@@ -14,7 +14,7 @@ UPDATE
14
users
15
SET
16
-- Replace 'admin' role with 'template-admin' and 'user-admin'
17
- rbac_roles = array_cat(array_remove(users.rbac_roles, 'admin'), ARRAY ['template-admin', 'user-admin'])
+ rbac_roles = array_cat(array_remove(rbac_roles, 'admin'), ARRAY ['template-admin', 'user-admin'])
18
WHERE
19
-- Only on existing admins
20
'admin' = ANY(rbac_roles);
0 commit comments