-- Idempotent migration: adds reaction_unread_count to conversation_members. -- Tracks per-user count of unread emoji reactions on their own messages within a conversation. -- Safe to run multiple times: uses ADD COLUMN IF NOT EXISTS. -- ============================================================ -- conversation_members table: reaction unread counter -- ============================================================ ALTER TABLE conversation_members ADD COLUMN IF NOT EXISTS reaction_unread_count integer NOT NULL DEFAULT 0; --> statement-breakpoint