diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ed1e3a..f36bc1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All schema changes will be documented in this file. +## 21-1-26 + +- Removed `delay_profile_tags` table - tags not needed for syncing since only the + default profile (id=1) can be updated, which must have empty tags +- Only one delay profile syncs per arr instance; others are ignored + ## 31-10-25 - Hello, World! diff --git a/ops/0.schema.sql b/ops/0.schema.sql index 8826793..4c464e0 100644 --- a/ops/0.schema.sql +++ b/ops/0.schema.sql @@ -401,6 +401,8 @@ CREATE TABLE sonarr_media_settings ( -- ============================================================================ -- Delay profiles control download timing preferences +-- Note: Tags removed - Radarr/Sonarr only allows updating the default profile (id=1) +-- which must have empty tags. Only one delay profile can be synced per arr instance. CREATE TABLE delay_profiles ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(100) UNIQUE NOT NULL, @@ -431,16 +433,6 @@ CREATE TABLE delay_profiles ( ) ); --- Link delay profiles to tags (at least 1 required - enforced at application level) --- Uses stable keys: delay_profile_name and tag_name -CREATE TABLE delay_profile_tags ( - delay_profile_name VARCHAR(100) NOT NULL, - tag_name VARCHAR(50) NOT NULL, - PRIMARY KEY (delay_profile_name, tag_name), - FOREIGN KEY (delay_profile_name) REFERENCES delay_profiles(name) ON DELETE CASCADE ON UPDATE CASCADE, - FOREIGN KEY (tag_name) REFERENCES tags(name) ON DELETE CASCADE ON UPDATE CASCADE -); - -- ============================================================================ -- QUALITY PROFILE TESTING -- ============================================================================