mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add description to audit log responses (#3949)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
-- It's not possible to drop enum values from enum types, so the UP has "IF NOT
|
||||
-- EXISTS".
|
||||
|
||||
-- Delete all jobs that use the new enum value.
|
||||
-- Delete all audit logs that use the new enum values.
|
||||
DELETE FROM
|
||||
provisioner_jobs
|
||||
audit_logs
|
||||
WHERE
|
||||
type = 'template_version_dry_run'
|
||||
;
|
||||
resource_type = 'git_ssh_key' OR
|
||||
resource_type = 'api_key';
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
-- It's not possible to drop enum values from enum types, so the UP has "IF NOT
|
||||
-- EXISTS".
|
||||
|
||||
-- Delete all jobs that use the new enum value.
|
||||
DELETE FROM
|
||||
provisioner_jobs
|
||||
WHERE
|
||||
type = 'template_version_dry_run';
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TYPE resource_type ADD VALUE IF NOT EXISTS 'git_ssh_key';
|
||||
ALTER TYPE resource_type ADD VALUE IF NOT EXISTS 'api_key';
|
||||
Reference in New Issue
Block a user