Files
silo-server/migrations/022_skipped_media_roots.up.sql
T

11 lines
434 B
SQL

CREATE TABLE IF NOT EXISTS skipped_media_roots (
media_folder_id INTEGER NOT NULL REFERENCES media_folders(id) ON DELETE CASCADE,
root_path TEXT NOT NULL,
reason TEXT NOT NULL,
sample_file_path TEXT NOT NULL DEFAULT '',
file_count INTEGER NOT NULL DEFAULT 0,
first_seen_at TIMESTAMPTZ NOT NULL DEFAULT now(),
last_seen_at TIMESTAMPTZ NOT NULL DEFAULT now(),
PRIMARY KEY (media_folder_id, root_path)
);