From b8b451ef4f37cdc73ab97881da9e072a99fce409 Mon Sep 17 00:00:00 2001 From: byGalax Date: Sat, 16 May 2026 22:17:04 +0200 Subject: [PATCH] feat(P5C.T2-sql): conversation_members.mentions_only column --- supabase/migrations/20260516000010_mentions_only.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 supabase/migrations/20260516000010_mentions_only.sql diff --git a/supabase/migrations/20260516000010_mentions_only.sql b/supabase/migrations/20260516000010_mentions_only.sql new file mode 100644 index 0000000..67c78b8 --- /dev/null +++ b/supabase/migrations/20260516000010_mentions_only.sql @@ -0,0 +1,9 @@ +-- Phase 5C: per-conversation "notify only on @mentions" toggle. +-- Lives alongside the existing muted_until column on conversation_members. +-- When true: the renderer's incoming-message notification gate suppresses +-- the alert unless the message contains an @-mention of the local user. +-- Mentions always fire regardless (override-by-design via the independent +-- useMentionNotifications subscription on message_mentions). + +alter table public.conversation_members + add column if not exists mentions_only boolean not null default false;