mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 02:11:12 -05:00
Fix: Update content_submissions constraint
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
-- 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'
|
||||
));
|
||||
Reference in New Issue
Block a user