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