feat: add rescan job type and improve full rebuild UX
Add "Deep rescan" job type that clears directory mtimes to force re-walking all directories, discovering newly supported formats (e.g. EPUB) without deleting existing data or metadata. Also improve full rebuild button: red destructive styling instead of warning, and FR description explicitly mentions metadata/reading status loss. Rename FR rebuild label to "Mise à jour". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7
infra/migrations/0047_add_rescan_job_type.sql
Normal file
7
infra/migrations/0047_add_rescan_job_type.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Add rescan job type: clears directory mtimes to force re-walking all directories
|
||||
-- while preserving existing data (unlike full_rebuild which deletes everything).
|
||||
-- Useful for discovering newly supported formats (e.g. EPUB) without losing metadata.
|
||||
ALTER TABLE index_jobs
|
||||
DROP CONSTRAINT IF EXISTS index_jobs_type_check,
|
||||
ADD CONSTRAINT index_jobs_type_check
|
||||
CHECK (type IN ('scan', 'rebuild', 'full_rebuild', 'rescan', 'thumbnail_rebuild', 'thumbnail_regenerate', 'cbr_to_cbz', 'metadata_batch', 'metadata_refresh'));
|
||||
Reference in New Issue
Block a user