Implement realtime queue fix

This commit is contained in:
gpt-engineer-app[bot]
2025-10-09 13:54:39 +00:00
parent 57368eb309
commit 1d45294703
5 changed files with 200 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
-- 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;