Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-perspectives-body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"adcontextprotocol": patch
---

Add missing database migrations for email feeds and RSS processing
14 changes: 14 additions & 0 deletions server/src/db/migrations/068_add_perspectives_body.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Migration: 068_add_perspectives_body.sql
-- Add body column for storing raw email content from newsletter subscriptions
-- This is separate from 'content' (markdown for articles) to preserve original email HTML/text

ALTER TABLE perspectives
ADD COLUMN IF NOT EXISTS body TEXT;

COMMENT ON COLUMN perspectives.body IS 'Raw email body content for newsletter-sourced perspectives (HTML or plain text)';

-- Add unique constraint on addie_knowledge.source_url for ON CONFLICT upserts
-- Used by createOrUpdateRssKnowledge in content-curator.ts
CREATE UNIQUE INDEX IF NOT EXISTS idx_addie_knowledge_source_url_unique
ON addie_knowledge(source_url)
WHERE source_url IS NOT NULL;