mirror of
https://github.com/Dictionarry-Hub/schema.git
synced 2026-05-03 06:14:17 +02:00
fix: remove delay_profile_tags - only default profile (id=1) should be synced
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
All schema changes will be documented in this file.
|
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
|
## 31-10-25
|
||||||
|
|
||||||
- Hello, World!
|
- Hello, World!
|
||||||
|
|||||||
+2
-10
@@ -401,6 +401,8 @@ CREATE TABLE sonarr_media_settings (
|
|||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
|
|
||||||
-- Delay profiles control download timing preferences
|
-- 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 (
|
CREATE TABLE delay_profiles (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
name VARCHAR(100) UNIQUE NOT NULL,
|
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
|
-- QUALITY PROFILE TESTING
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user