Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 00:03:10 +00:00
co-authored by renee-png
parent 095df6e6f2
commit 6d2e33c44f
2 changed files with 15 additions and 0 deletions
@@ -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);