mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: implement typed database for custom permissions (breaks existing custom roles) (#13457)
* chore: typed database custom permissions * add migration to fix any custom roles out there
This commit is contained in:
@@ -28,6 +28,15 @@ sql:
|
||||
emit_enum_valid_method: true
|
||||
emit_all_enum_values: true
|
||||
overrides:
|
||||
- column: "custom_roles.site_permissions"
|
||||
go_type:
|
||||
type: "CustomRolePermissions"
|
||||
- column: "custom_roles.org_permissions"
|
||||
go_type:
|
||||
type: "CustomRolePermissions"
|
||||
- column: "custom_roles.user_permissions"
|
||||
go_type:
|
||||
type: "CustomRolePermissions"
|
||||
- column: "provisioner_daemons.tags"
|
||||
go_type:
|
||||
type: "StringMap"
|
||||
|
||||
Reference in New Issue
Block a user