9ceac5c639
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
629 B
SQL
18 lines
629 B
SQL
-- name: GetLidarrConfig :one
|
|
SELECT id, enabled, base_url, api_key, default_quality_profile_id,
|
|
default_root_folder_path, created_at, updated_at
|
|
FROM lidarr_config
|
|
WHERE id = 1;
|
|
|
|
-- name: UpdateLidarrConfig :one
|
|
UPDATE lidarr_config
|
|
SET enabled = $1,
|
|
base_url = $2,
|
|
api_key = $3,
|
|
default_quality_profile_id = $4,
|
|
default_root_folder_path = $5,
|
|
updated_at = now()
|
|
WHERE id = 1
|
|
RETURNING id, enabled, base_url, api_key, default_quality_profile_id,
|
|
default_root_folder_path, created_at, updated_at;
|