mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 07:15:47 +00:00
67b1dc790b
* fix(library): sweep orphan tracks after successful full resync Full resync only upserted server tracks and left server-deleted rows live in SQLite. Add IS-7 mark-and-sweep via track.resync_gen: stamp rows on ingest during a re-sync, soft-delete unstamped rows when IS-6 completes. Delta tombstone reconcile is unchanged. * docs(release): CHANGELOG and credits for PR #861 resync orphan sweep * fix(library): satisfy clippy unnecessary_min_or_max in orphan sweep execute() returns usize; drop redundant max(0) so CI clippy -D warnings passes.
5 lines
280 B
SQL
5 lines
280 B
SQL
-- Full-resync orphan sweep (mark-and-sweep via generation stamp).
|
|
-- Rows ingested during a resync pass carry the active `resync_gen`; after
|
|
-- IS-6 succeeds, live rows with a stale generation are soft-deleted.
|
|
ALTER TABLE track ADD COLUMN resync_gen INTEGER NOT NULL DEFAULT 0;
|