mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
chore: change sql parameter for custom roles to be a (name,org_id) tuple (#13480)
* chore: sql parameter to custom roles to be a (name,org) tuple CustomRole lookup takes (name,org_id) tuples as the search criteria.
This commit is contained in:
@@ -28,6 +28,10 @@ sql:
|
||||
emit_enum_valid_method: true
|
||||
emit_all_enum_values: true
|
||||
overrides:
|
||||
# Used in 'CustomRoles' query to filter by (name,organization_id)
|
||||
- db_type: "name_organization_pair"
|
||||
go_type:
|
||||
type: "NameOrganizationPair"
|
||||
- column: "custom_roles.site_permissions"
|
||||
go_type:
|
||||
type: "CustomRolePermissions"
|
||||
|
||||
Reference in New Issue
Block a user