mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-14 18:09:11 +00:00
dirty scan speed testing
This commit is contained in:
8
libmarlin/src/db/migrations/0005_add_dirty_table.sql
Normal file
8
libmarlin/src/db/migrations/0005_add_dirty_table.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
PRAGMA foreign_keys = ON;
|
||||
PRAGMA journal_mode = WAL;
|
||||
|
||||
-- Track which files need re-indexing
|
||||
CREATE TABLE IF NOT EXISTS file_changes (
|
||||
file_id INTEGER PRIMARY KEY REFERENCES files(id) ON DELETE CASCADE,
|
||||
marked_at INTEGER NOT NULL -- UNIX timestamp
|
||||
);
|
Reference in New Issue
Block a user