tubearr/drizzle/0019_fix_unmonitored_status.sql
jlightner 3e21acfe2b
All checks were successful
CI / test (push) Successful in 19s
fix: unmonitored items incorrectly set to status=monitored; autofocus channel URL input
- scheduler.ts and back-catalog-import.ts now set status='ignored' when
  monitored=false (channel monitoring mode excludes the item)
- Migration 0019 fixes existing data: UPDATE status='ignored' WHERE monitored=0
- Modal.tsx focuses first [autofocus] element instead of the container div
2026-04-04 16:38:29 +00:00

6 lines
325 B
SQL

-- Fix content items where monitored=false but status is still 'monitored'
-- These were incorrectly set to status='monitored' during scan/import
-- when the channel's monitoring mode didn't include them.
UPDATE content_items
SET status = 'ignored', updated_at = datetime('now')
WHERE monitored = 0 AND status = 'monitored';