mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
This reverts commit 145faf4400
.
This commit is contained in:
7
coderd/database/dump.sql
generated
7
coderd/database/dump.sql
generated
@ -14,9 +14,7 @@ CREATE TYPE app_sharing_level AS ENUM (
|
||||
CREATE TYPE audit_action AS ENUM (
|
||||
'create',
|
||||
'write',
|
||||
'delete',
|
||||
'start',
|
||||
'stop'
|
||||
'delete'
|
||||
);
|
||||
|
||||
CREATE TYPE build_reason AS ENUM (
|
||||
@ -90,8 +88,7 @@ CREATE TYPE resource_type AS ENUM (
|
||||
'workspace',
|
||||
'git_ssh_key',
|
||||
'api_key',
|
||||
'group',
|
||||
'workspace_build'
|
||||
'group'
|
||||
);
|
||||
|
||||
CREATE TYPE user_status AS ENUM (
|
||||
|
@ -1,2 +0,0 @@
|
||||
-- It's not possible to drop enum values from enum types, so the UP has "IF NOT
|
||||
-- EXISTS".
|
@ -1,4 +0,0 @@
|
||||
ALTER TYPE audit_action ADD VALUE IF NOT EXISTS 'start';
|
||||
ALTER TYPE audit_action ADD VALUE IF NOT EXISTS 'stop';
|
||||
|
||||
ALTER TYPE resource_type ADD VALUE IF NOT EXISTS 'workspace_build';
|
@ -60,8 +60,6 @@ const (
|
||||
AuditActionCreate AuditAction = "create"
|
||||
AuditActionWrite AuditAction = "write"
|
||||
AuditActionDelete AuditAction = "delete"
|
||||
AuditActionStart AuditAction = "start"
|
||||
AuditActionStop AuditAction = "stop"
|
||||
)
|
||||
|
||||
func (e *AuditAction) Scan(src interface{}) error {
|
||||
@ -304,7 +302,6 @@ const (
|
||||
ResourceTypeGitSshKey ResourceType = "git_ssh_key"
|
||||
ResourceTypeApiKey ResourceType = "api_key"
|
||||
ResourceTypeGroup ResourceType = "group"
|
||||
ResourceTypeWorkspaceBuild ResourceType = "workspace_build"
|
||||
)
|
||||
|
||||
func (e *ResourceType) Scan(src interface{}) error {
|
||||
|
Reference in New Issue
Block a user