sipher/supabase/sql_snippets/Enable Full Replica Identity for Thread Participants.sql
Nixyi 8b27c6b140 Stable Release (I think)
Added all SQL scripts by using a python script to fetch them.

Also added a "About" page and a skeleton to the chat page.

Fixed the register function that was not setting the public_key on the database
2024-12-18 16:08:06 -03:00

1 line
No EOL
474 B
SQL

-- Check and set the publication
SELECT *
FROM pg_publication;
-- If not set correctly, reset it:
DROP
PUBLICATION IF EXISTS supabase_realtime;
CREATE
PUBLICATION supabase_realtime FOR ALL TABLES;
-- Enable FULL replica identity for our tables
ALTER TABLE public.users REPLICA IDENTITY FULL;
ALTER TABLE public.messages REPLICA IDENTITY FULL;
ALTER TABLE public.thread_participants REPLICA IDENTITY FULL;
ALTER TABLE public.message_threads REPLICA IDENTITY FULL;