UPDATE library_album_matches SET outcome = 'unmatched' WHERE outcome = 'dismissed'; UPDATE library_album_matches SET method = 'search' WHERE method = 'manual'; ALTER TABLE library_album_matches DROP CONSTRAINT library_album_matches_outcome_check; ALTER TABLE library_album_matches ADD CONSTRAINT library_album_matches_outcome_check CHECK (outcome IN ('listed', 'unmatched')); ALTER TABLE library_album_matches DROP CONSTRAINT library_album_matches_method_check; ALTER TABLE library_album_matches ADD CONSTRAINT library_album_matches_method_check CHECK (method IN ('', 'tags', 'release', 'discography', 'search'));