Files
minstrel/internal/db/migrations/0091_remove_lidarr.up.sql
T
bvandeusenandClaude Opus 5.5 3a16732883
release / govulncheck (push) Successful in 15s
release / web (push) Failing after 17s
release / go (push) Successful in 1m13s
release / integration (push) Successful in 4m56s
release / android (push) Successful in 5m9s
release / Build signed APK (releases and dev) (push) Successful in 5m19s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
feat: Minstrel no longer talks to Lidarr: its connection, Delete via Lidarr and the unmonitor options are gone, and the track reports are plain quarantine (M502 #5525)
Migration 0091 drops lidarr_config and renames the quarantine tables, types,
indexes and the history column off the Lidarr name. The Integrations Lidarr
card, the Reports "Delete via Lidarr" action, the merge and remove-track
unmonitor options, the Lidarr audit actions and error codes go, on the
server, web and Android. The README describes acquisition as it is now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 13:48:20 -04:00

30 lines
1.8 KiB
SQL

-- Minstrel no longer talks to Lidarr (M502 #5525): it finds, downloads,
-- checks and files music itself.
--
-- lidarr_config the connection's settings: dropped.
-- lidarr_quarantine(_actions) the per-user track reports and the admin
-- actions on them, which never needed Lidarr:
-- renamed to quarantine(_actions), with their
-- types and indexes.
-- 'deleted_via_lidarr' the history of an album removed through
-- Lidarr reads as what it did: 'deleted_album'.
-- lidarr_album_mbid the album id that removal recorded: album_mbid.
DROP TABLE lidarr_config;
ALTER TABLE lidarr_quarantine RENAME TO quarantine;
ALTER TYPE lidarr_quarantine_reason RENAME TO quarantine_reason;
ALTER INDEX lidarr_quarantine_track_idx RENAME TO quarantine_track_idx;
ALTER INDEX lidarr_quarantine_pkey RENAME TO quarantine_pkey;
ALTER TABLE lidarr_quarantine_actions RENAME TO quarantine_actions;
ALTER TYPE lidarr_quarantine_action_kind RENAME TO quarantine_action_kind;
ALTER TYPE quarantine_action_kind RENAME VALUE 'deleted_via_lidarr' TO 'deleted_album';
ALTER TABLE quarantine_actions RENAME COLUMN lidarr_album_mbid TO album_mbid;
ALTER INDEX lidarr_quarantine_actions_pkey RENAME TO quarantine_actions_pkey;
ALTER INDEX lidarr_quarantine_actions_track_idx RENAME TO quarantine_actions_track_idx;
ALTER INDEX lidarr_quarantine_actions_created_idx RENAME TO quarantine_actions_created_idx;
ALTER TABLE quarantine RENAME CONSTRAINT lidarr_quarantine_user_id_fkey TO quarantine_user_id_fkey;
ALTER TABLE quarantine RENAME CONSTRAINT lidarr_quarantine_track_id_fkey TO quarantine_track_id_fkey;
ALTER TABLE quarantine_actions RENAME CONSTRAINT lidarr_quarantine_actions_admin_id_fkey TO quarantine_actions_admin_id_fkey;