Files
thrilltrack-explorer/supabase/migrations/20251009135214_0e2de440-26a1-48e2-98c5-6cf792790f65.sql
2025-10-09 13:54:39 +00:00

15 lines
565 B
SQL

-- Enable full row data for realtime updates on content_submissions
ALTER TABLE public.content_submissions REPLICA IDENTITY FULL;
-- Add table to realtime publication
ALTER PUBLICATION supabase_realtime ADD TABLE public.content_submissions;
-- Add admin setting for realtime queue toggle
INSERT INTO public.admin_settings (setting_key, setting_value, category, description)
VALUES (
'system.use_realtime_queue',
'"true"'::jsonb,
'system',
'Use realtime subscriptions for moderation queue updates instead of polling'
)
ON CONFLICT (setting_key) DO NOTHING;