Initial open source release

This commit is contained in:
A 2026-06-04 01:37:39 +08:00
commit 74992e893f
377 changed files with 118084 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-- 0027_channel_message_search_indexes: bounded in-channel text search.
--
-- TDesktop uses messages.search with inputPeerChannel for in-chat search.
-- Keep text lookup indexed on the single-copy channel_messages table.
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE INDEX IF NOT EXISTS channel_messages_body_trgm_idx
ON channel_messages USING gin (body gin_trgm_ops)
WHERE NOT deleted AND body <> '';