-- Remove the old constraint ALTER TABLE static_data DROP CONSTRAINT IF EXISTS chk_category; -- Add the updated constraint ALTER TABLE static_data ADD CONSTRAINT chk_category CHECK (category IN ('constellation', 'galaxy', 'star', 'nebula', 'cluster', 'asteroid_belt', 'kuiper_belt'));