diff --git a/.changeset/legal-islands-kick.md b/.changeset/legal-islands-kick.md new file mode 100644 index 0000000000..10b4399a09 --- /dev/null +++ b/.changeset/legal-islands-kick.md @@ -0,0 +1,8 @@ +--- +--- + +fix: Remove RSS and email content from Editorial working group + +Migration 153 incorrectly swept RSS feed articles into the Editorial working group. +RSS content should remain unassigned (working_group_id = NULL) and display +via The Latest sections through addie_knowledge. diff --git a/server/src/db/migrations/169_remove_rss_from_editorial.sql b/server/src/db/migrations/169_remove_rss_from_editorial.sql new file mode 100644 index 0000000000..2461242d01 --- /dev/null +++ b/server/src/db/migrations/169_remove_rss_from_editorial.sql @@ -0,0 +1,20 @@ +-- Migration: 169_remove_rss_from_editorial.sql +-- Fix: Remove RSS-sourced content from Editorial working group +-- +-- Migration 153 incorrectly swept ALL perspectives with NULL working_group_id +-- into the Editorial working group, including RSS feed articles. +-- RSS content should remain unassigned (working_group_id = NULL) and display +-- via The Latest sections through addie_knowledge, not on working group pages. + +-- ============================================================================= +-- Remove RSS and email content from any working group +-- ============================================================================= + +UPDATE perspectives +SET working_group_id = NULL +WHERE source_type IN ('rss', 'email') + AND working_group_id IS NOT NULL; + +-- ============================================================================= +-- Done +-- =============================================================================