-- Drop rows using the new value first so they don't violate the restored -- (narrower) constraint, then revert the whitelist. DELETE FROM diagnostic_events WHERE kind = 'playback'; ALTER TABLE diagnostic_events DROP CONSTRAINT diagnostic_events_kind_check; ALTER TABLE diagnostic_events ADD CONSTRAINT diagnostic_events_kind_check CHECK (kind IN ( 'connectivity', 'upnp_sync', 'power', 'lifecycle', 'heartbeat', 'http' ));