Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(db): channel left at index (#3822)
Will Hutchinson63ba5e80338d
diff --git a/rust/cloud-storage/macro_db_client/migrations/20260608160331_channel_leave_index.sql b/rust/cloud-storage/macro_db_client/migrations/20260608160331_channel_leave_index.sqlnew file mode 100644index 0000000000..764ad3199c--- /dev/null+++ b/rust/cloud-storage/macro_db_client/migrations/20260608160331_channel_leave_index.sql@@ -0,0 +1,5 @@+-- no-transaction++ CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_comms_cp_active_by_user_channel+ ON comms_channel_participants (user_id, channel_id)+ WHERE left_at IS NULL;