Files
TradarrV2/backend/internal/database/migrations/000012_article_limits.up.sql
Blomios a4d63015d4 feat(ranking): add safe article ranking and limits
Rank candidate articles using the selected preference and enforce global and per-source article limits.

Refs #6

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 19:54:17 +01:00

4 lines
186 B
SQL

ALTER TABLE sources ADD COLUMN article_limit INTEGER NOT NULL DEFAULT 20
CHECK (article_limit BETWEEN 1 AND 200);
-- Existing summary_max_articles values are deliberately preserved.