Skip to content

Commit

Permalink
build: fix to migration converting taskevent enum
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 5, 2024
1 parent 70cce9e commit 79354c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/migrations/007-rename-task-history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ END$$;



-- Update action field values --> taskevent enum
-- Update event field values --> taskevent enum

DO $$
BEGIN
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'task_events' AND column_name = 'action') THEN
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'task_events' AND column_name = 'event') THEN
-- Change from taskaction --> taskevent
ALTER TABLE task_events
ALTER COLUMN event TYPE public.taskevent
Expand Down

0 comments on commit 79354c6

Please sign in to comment.