Files
minstrel/internal/db/migrations/0106_playback_error_resolutions.up.sql
T
bvandeusenandClaude Opus 5.5 27b52c3993
release / go (push) Failing after 1m16s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 19s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m16s
release / Build signed APK (push) Canceled after 1m7s
release / integration (push) Canceled after 3m40s
feat(db): migration 106 also drops the request enums
request_kind and request_status were the requests table's column types
and outlived it. No database has run 106 yet, so it carries the drop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:36:23 -05:00

12 lines
530 B
SQL

-- A playback error is resolved by hiding or deleting the track, or by marking
-- it fixed or ignored. Nothing re-requests a track any more, so 'requested'
-- is no longer a resolution.
ALTER TABLE playback_errors
DROP CONSTRAINT playback_errors_resolution_check,
ADD CONSTRAINT playback_errors_resolution_check
CHECK (resolution IS NULL OR resolution IN ('hidden', 'deleted', 'fixed', 'ignored'));
-- The enums the requests table used, left behind when it went.
DROP TYPE request_kind;
DROP TYPE request_status;