Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
095df6e6f2
commit
6d2e33c44f
@@ -3013,6 +3013,7 @@ export type Database = {
|
||||
created_by: string | null
|
||||
description: string | null
|
||||
id: string
|
||||
kind: string
|
||||
name: string
|
||||
updated_at: string
|
||||
}
|
||||
@@ -3021,6 +3022,7 @@ export type Database = {
|
||||
created_by?: string | null
|
||||
description?: string | null
|
||||
id?: string
|
||||
kind?: string
|
||||
name: string
|
||||
updated_at?: string
|
||||
}
|
||||
@@ -3029,6 +3031,7 @@ export type Database = {
|
||||
created_by?: string | null
|
||||
description?: string | null
|
||||
id?: string
|
||||
kind?: string
|
||||
name?: string
|
||||
updated_at?: string
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
ALTER TABLE public.workflow_templates
|
||||
ADD COLUMN IF NOT EXISTS kind text NOT NULL DEFAULT 'task';
|
||||
|
||||
ALTER TABLE public.workflow_templates
|
||||
DROP CONSTRAINT IF EXISTS workflow_templates_kind_check;
|
||||
|
||||
ALTER TABLE public.workflow_templates
|
||||
ADD CONSTRAINT workflow_templates_kind_check
|
||||
CHECK (kind IN ('task','collection'));
|
||||
|
||||
CREATE INDEX IF NOT EXISTS workflow_templates_kind_idx
|
||||
ON public.workflow_templates (kind);
|
||||
Reference in New Issue
Block a user