From b3b29d3fe9df4e204b37e191aeab9d41b7a18de2 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Wed, 31 Dec 2025 03:20:25 +1030 Subject: [PATCH] feat: add custom rename control --- CHANGELOG.md | 5 +++-- ops/0.schema.sql | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c97b56d..57324e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,9 +42,10 @@ All schema changes will be documented in this file. - CHECK constraints for protocol/delay validation ## 31-12-25 - - Add custom format testing table - custom_format_tests: stores test cases for validating custom format matching - Each test specifies a release title and whether it should match the format - Supports movie/series type differentiation for parser context - - Unique constraint on (custom_format_id, title, type) prevents duplicate tests \ No newline at end of file + - Unique constraint on (custom_format_id, title, type) prevents duplicate tests +- Add include_in_rename column to custom_formats table + - Controls whether custom format name appears in renamed filenames \ No newline at end of file diff --git a/ops/0.schema.sql b/ops/0.schema.sql index 9c37b2a..a64ca69 100644 --- a/ops/0.schema.sql +++ b/ops/0.schema.sql @@ -57,6 +57,7 @@ CREATE TABLE custom_formats ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(100) UNIQUE NOT NULL, description TEXT, + include_in_rename INTEGER NOT NULL DEFAULT 0, created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP );