mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Preserve AI overview drafts and original metadata backups across Jellyfin reindex
This commit is contained in:
@@ -97,7 +97,10 @@ CREATE INDEX IF NOT EXISTS idx_caption_windows_unsynced
|
||||
WHERE caption IS NOT NULL;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS jellyfin_overview_drafts (
|
||||
media_id TEXT PRIMARY KEY REFERENCES media(id) ON DELETE CASCADE,
|
||||
-- Do NOT cascade on media deletion: the indexing code temporarily deletes
|
||||
-- and recreates the media row when an ETag changes, including after metadata
|
||||
-- edits. Original Overview backups must survive that reindex lifecycle.
|
||||
media_id TEXT PRIMARY KEY,
|
||||
jellyfin_item_id TEXT NOT NULL,
|
||||
overview TEXT NOT NULL,
|
||||
model TEXT NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user