mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 10:51:12 -05:00
15 lines
565 B
SQL
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; |