Files
alembic/schema/0002_dedup_ignore.sql
andrew 9d1eee3337 Add "keep both" option to dedup review
Lets a candidate be marked ignored instead of confirmed/applied; future
scans skip re-flagging the same path pair once it's been ignored, since
a rescan can flip which side ranks as keep/delete without changing the
user's earlier decision that the pair is fine as two copies. Also adds
--apply-pairs to find-fuzzy-dupes.py to apply pre-confirmed pairs
without a full rescan.
2026-07-09 08:42:14 -06:00

9 lines
446 B
SQL

-- Adds a "keep both" path for dedup review: a candidate can be marked
-- ignored instead of confirmed/applied, and future scans skip re-creating
-- a pending candidate for the same path pair once it's been ignored.
ALTER TABLE dedup_candidates ADD COLUMN ignored BOOLEAN NOT NULL DEFAULT 0;
ALTER TABLE dedup_candidates ADD COLUMN ignored_by TEXT;
ALTER TABLE dedup_candidates ADD COLUMN ignored_at REAL;
UPDATE schema_version SET version = 2;