From 79354c6e0f19fb766386cfde9686a9cdfcc73cc9 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 5 Nov 2024 16:27:46 +0000 Subject: [PATCH] build: fix to migration converting taskevent enum --- src/backend/migrations/007-rename-task-history.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/migrations/007-rename-task-history.sql b/src/backend/migrations/007-rename-task-history.sql index 123df1f3ba..2adfc5eccd 100644 --- a/src/backend/migrations/007-rename-task-history.sql +++ b/src/backend/migrations/007-rename-task-history.sql @@ -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