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