-- 0077_track_source_verdict.up.sql — video rips are held back from mixes and -- radio until the operator says otherwise (Scribe milestone #498, #5439; -- operator decision D-d). -- -- A file whose name carries a video-rip marker ("(Official Video)", "[HD]", -- #5410) holds the audio of an upload, which can carry intros, skits or a -- different take. The duplicate resolver sets 'suspect' on such a present -- track each pass, and clears it when the name no longer matches. 'suspect' -- keeps the track out of radio and the system mixes; it still plays when -- chosen. 'fine' is the operator's "this one is fine" and is never -- overwritten by the resolver. ALTER TABLE tracks ADD COLUMN source_verdict text CONSTRAINT tracks_source_verdict_check CHECK (source_verdict IN ('suspect', 'fine')); ALTER TABLE tracks ADD COLUMN source_verdict_at timestamptz; CREATE INDEX tracks_source_suspect_idx ON tracks (id) WHERE source_verdict = 'suspect';