Files
thrilltrack-explorer/supabase/migrations/20251002190813_be6a61c4-7399-4ff3-9bf9-96d5f93133e8.sql
2025-10-02 19:08:26 +00:00

19 lines
475 B
SQL

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