From 6d2e33c44fcf3899bd4b191d004784166f0534ac Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 00:03:10 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/integrations/supabase/types.ts | 3 +++ ...19000306_4915ac52-4c1f-4f01-bddb-96606c4072c4.sql | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 supabase/migrations/20260419000306_4915ac52-4c1f-4f01-bddb-96606c4072c4.sql diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index 8107b43..cf66644 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -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 } diff --git a/supabase/migrations/20260419000306_4915ac52-4c1f-4f01-bddb-96606c4072c4.sql b/supabase/migrations/20260419000306_4915ac52-4c1f-4f01-bddb-96606c4072c4.sql new file mode 100644 index 0000000..c586f18 --- /dev/null +++ b/supabase/migrations/20260419000306_4915ac52-4c1f-4f01-bddb-96606c4072c4.sql @@ -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); \ No newline at end of file