fix: remove delay_profile_tags - only default profile (id=1) should be synced

This commit is contained in:
Sam Chau
2026-01-21 08:27:49 +10:30
parent 1219c22f04
commit eddc4465ed
2 changed files with 8 additions and 10 deletions
+6
View File
@@ -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!
+2 -10
View File
@@ -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
-- ============================================================================