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
@@ -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