Skip to main content

## MIGRATION_015

# Constant MIGRATION_015

Source

    const MIGRATION_015: &str = r#"
    -- App-wide settings table for device ID and other app-level configuration
    -- Device ID is a unique identifier for this app installation
    -- Required for Jellyfin server communication and session tracking
    CREATE TABLE IF NOT EXISTS app_settings (
        key TEXT PRIMARY KEY,
        value TEXT NOT NULL,
        updated_at TEXT DEFAULT CURRENT_TIMESTAMP
    );

    -- Create index for efficient lookups (though key is already primary key)
    CREATE INDEX IF NOT EXISTS idx_app_settings_key ON app_settings(key);
    "#;

Expand description

Migration to add device ID storage

- Creates app_settings table for app-wide configuration (device ID, etc.)
- Device ID is generated once and persisted for Jellyfin server identification