-- Drop existing constraint ALTER TABLE public.submission_items DROP CONSTRAINT IF EXISTS submission_items_item_type_check; -- Add updated constraint with photo_edit and photo_delete ALTER TABLE public.submission_items ADD CONSTRAINT submission_items_item_type_check CHECK (item_type IN ( 'park', 'ride', 'review', 'photo', 'ride_model', 'manufacturer', 'operator', 'designer', 'property_owner', 'photo_edit', 'photo_delete' ));