improvements to the sleep timer
This commit is contained in:
@@ -18,6 +18,7 @@ pub const MIGRATIONS: &[(&str, &str)] = &[
|
||||
("013_downloads_item_status_index", MIGRATION_013),
|
||||
("014_series_audio_preferences", MIGRATION_014),
|
||||
("015_device_id", MIGRATION_015),
|
||||
("016_autoplay_max_episodes", MIGRATION_016),
|
||||
];
|
||||
|
||||
/// Initial schema migration
|
||||
@@ -656,3 +657,11 @@ CREATE TABLE IF NOT EXISTS app_settings (
|
||||
-- Create index for efficient lookups (though key is already primary key)
|
||||
CREATE INDEX IF NOT EXISTS idx_app_settings_key ON app_settings(key);
|
||||
"#;
|
||||
|
||||
/// Migration to add autoplay episode limit setting
|
||||
/// - Adds autoplay_max_episodes column to user_player_settings
|
||||
/// - 0 = unlimited (default), any positive value limits consecutive auto-plays
|
||||
const MIGRATION_016: &str = r#"
|
||||
ALTER TABLE user_player_settings
|
||||
ADD COLUMN autoplay_max_episodes INTEGER DEFAULT 0;
|
||||
"#;
|
||||
|
||||
Reference in New Issue
Block a user