mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-17 04:15:05 +00:00
fix(channelmemory): honor Discord parent channel excludes (#1390)
* fix(channelmemory): harden passive extraction * fix(channelmemory): honor discord parent channel excludes --------- Co-authored-by: Collective Developer <man@collective.dev>
This commit is contained in:
1 parent
8367a9bd0c
commit
7263f771c8
21 files changed
+272
-104
No files matched your search
@@ -1166,6 +1166,7 @@ CREATE TABLE IF NOT EXISTS channel_pending_messages (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
channel_name VARCHAR(100) NOT NULL,
|
||||
history_key VARCHAR(200) NOT NULL,
|
||||
parent_history_key VARCHAR(200) NOT NULL DEFAULT '',
|
||||
sender VARCHAR(255) NOT NULL,
|
||||
sender_id VARCHAR(255) NOT NULL DEFAULT '',
|
||||
body TEXT NOT NULL,
|
||||
@@ -1177,6 +1178,7 @@ CREATE TABLE IF NOT EXISTS channel_pending_messages (
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_channel_pending_messages_lookup ON channel_pending_messages(channel_name, history_key, created_at);
|
||||
CREATE INDEX IF NOT EXISTS idx_channel_pending_messages_parent ON channel_pending_messages(channel_name, parent_history_key) WHERE parent_history_key <> '';
|
||||
CREATE INDEX IF NOT EXISTS idx_channel_pending_messages_tenant ON channel_pending_messages(tenant_id);
|
||||
|
||||
-- ============================================================
|
||||
|
||||
Reference in new issue
Block a user