mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 23:51:11 -05:00
Implement realtime queue fix
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user