Files
ReadMeABook/prisma/migrations/20260126100000_add_audiobook_files_hash/migration.sql
T
kikootwo a97979358f Implement file hash-based library matching and remove fuzzy ASIN matching
Adds file hash-based matching for Audiobookshelf library items to ensure 100% accurate ASIN assignment for RMAB-organized content. Removes fuzzy matching from library availability checks, making all matching ASIN-only to eliminate false positives and race conditions. Updates database schema, processors, and matcher utilities; adds new tests and documentation for the new matching strategy. Removes obsolete scripts, Dockerfile, and related tests; updates docker-compose for test environments.
2026-01-28 11:42:00 -05:00

9 lines
333 B
SQL

-- Add files_hash field to audiobooks table for accurate library matching
-- SHA256 hash of sorted audio filenames used to match RMAB-organized content with ABS library items
-- AlterTable
ALTER TABLE "audiobooks" ADD COLUMN "files_hash" TEXT;
-- CreateIndex
CREATE INDEX "audiobooks_files_hash_idx" ON "audiobooks"("files_hash");