mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: implement API key scopes database migration (#19861)
Added database migration for API key scopes. Fixes #19845
This commit is contained in:
@@ -28,6 +28,12 @@ sql:
|
||||
emit_enum_valid_method: true
|
||||
emit_all_enum_values: true
|
||||
overrides:
|
||||
- column: "api_keys.scopes"
|
||||
go_type:
|
||||
type: "APIKeyScopes"
|
||||
- column: "api_keys.allow_list"
|
||||
go_type:
|
||||
type: "AllowList"
|
||||
- db_type: "agent_id_name_pair"
|
||||
go_type:
|
||||
type: "AgentIDNamePair"
|
||||
|
||||
Reference in New Issue
Block a user