Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(notif): index chan notifs on msg id (#2799)

Sean Aye4168b60361d4
diff --git a/rust/cloud-storage/macro_db_client/migrations/20260423120001_idx_notification_channel_message_id.sql b/rust/cloud-storage/macro_db_client/migrations/20260423120001_idx_notification_channel_message_id.sql
new file mode 100644
index 0000000000..81a6c61d6e
--- /dev/null
+++ b/rust/cloud-storage/macro_db_client/migrations/20260423120001_idx_notification_channel_message_id.sql
@@ -0,0 +1,5 @@
+-- no-transaction
+
+CREATE INDEX CONCURRENTLY IF NOT EXISTS notification_channel_message_id_idx
+ ON notification ((metadata->>'messageId'))
+ WHERE event_item_type = 'channel';