diff --git a/supabase/migrations/049_map_realtime_replica_identity.sql b/supabase/migrations/049_map_realtime_replica_identity.sql new file mode 100644 index 0000000..56eeb65 --- /dev/null +++ b/supabase/migrations/049_map_realtime_replica_identity.sql @@ -0,0 +1,8 @@ +-- ============================================================ +-- Fix map realtime: set REPLICA IDENTITY FULL so Supabase +-- Realtime can evaluate RLS policies for all subscribers +-- ============================================================ + +ALTER TABLE map_layers REPLICA IDENTITY FULL; +ALTER TABLE map_pins REPLICA IDENTITY FULL; +ALTER TABLE map_shapes REPLICA IDENTITY FULL;