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.

fix(search): drop document name covering index and create the index without name (#2323)

gbirman046965c0b8a8
diff --git a/rust/cloud-storage/macro_db_client/migrations/20260331180000_document_name_search_covering_index.sql b/rust/cloud-storage/macro_db_client/migrations/20260331180000_document_name_search_covering_index.sql
index 9088809126..094097434c 100644
--- a/rust/cloud-storage/macro_db_client/migrations/20260331180000_document_name_search_covering_index.sql
+++ b/rust/cloud-storage/macro_db_client/migrations/20260331180000_document_name_search_covering_index.sql
@@ -1,4 +1,4 @@
-- no-transaction
-CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_document_name_search_covering
+CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_document_id_covering
ON "Document" (id)
- INCLUDE (name, "updatedAt", "deletedAt");
+ INCLUDE ("updatedAt", "deletedAt");