ALTER TABLE source_connections DROP CONSTRAINT IF EXISTS source_connections_source_type_check; ALTER TABLE source_connections ADD CONSTRAINT source_connections_source_type_check CHECK (source_type IN ('pp', 'alist', 'dingtalk', 'manual'));