fix: migration 0009 UNIQUE → 普通 INDEX(存量重复数据冲突)

ON CONFLICT DO NOTHING 已在 Rust 代码中处理去重
This commit is contained in:
2026-06-02 15:40:44 +08:00
parent 3a7e40c174
commit fe83687495
+2 -2
View File
@@ -1,3 +1,3 @@
-- 聊天记录去重索引
CREATE UNIQUE INDEX IF NOT EXISTS idx_chat_records_message_id
-- 聊天记录去重索引(普通索引,不用 UNIQUE 避免存量重复数据冲突)
CREATE INDEX IF NOT EXISTS idx_chat_records_message_id
ON chat_records (message_id) WHERE message_id != '';