From 3a7e40c174db994964df7e3697f51b7cefea8b65 Mon Sep 17 00:00:00 2001 From: wunianxiao Date: Tue, 2 Jun 2026 15:39:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=9E=E9=80=80=20migration=200001=20?= =?UTF-8?q?=E5=88=B0=E5=8E=9F=E5=A7=8B=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 独立索引在 0009_chat_dedup.sql 中已有 --- migrations/20260601000001_init.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/migrations/20260601000001_init.sql b/migrations/20260601000001_init.sql index f8b7e61..9e3c22b 100644 --- a/migrations/20260601000001_init.sql +++ b/migrations/20260601000001_init.sql @@ -27,6 +27,3 @@ CREATE INDEX IF NOT EXISTS idx_chat_records_user_created CREATE INDEX IF NOT EXISTS idx_chat_records_account_created ON chat_records (account_id, created_at DESC); - -CREATE UNIQUE INDEX IF NOT EXISTS idx_chat_records_message_id - ON chat_records (message_id) WHERE message_id != '';