From db2eb62277baa50b5e74f378bbcbe7fc844f69e9 Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 13 Oct 2026 17:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E8=BF=87=E6=97=B6?= =?UTF-8?q?=E7=9A=84im=5Ffilemsglinks=5Fmsgid=5Fbigint.sql=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该文件是用于修复msgid字段类型从INT改为BIGINT的遗留SQL脚本,在完成数据库字段变更后已不再需要,删除后可避免后续误用该过时脚本。 --- .../generate/im_filemsglinks_msgid_bigint.sql | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 server/storage/data/generate/im_filemsglinks_msgid_bigint.sql diff --git a/server/storage/data/generate/im_filemsglinks_msgid_bigint.sql b/server/storage/data/generate/im_filemsglinks_msgid_bigint.sql deleted file mode 100644 index c332060..0000000 --- a/server/storage/data/generate/im_filemsglinks_msgid_bigint.sql +++ /dev/null @@ -1,15 +0,0 @@ --- im_filemsglinks.msgid: INT -> BIGINT --- --- Background: message ids are snowflake int64 values (~1.58e18). The msgid --- column was INT (max 2147483647), so every attempt to insert a message-file --- link failed with MySQL error 1264 "Out of range value for column 'msgid'". --- The failing Kafka message-persist consumer then retried the same message --- forever, stalling its partition and blocking persistence for every message --- queued behind it (p2p history stuck at old seqs while senders' seq kept --- advancing in Redis). --- --- Applies to: any environment provisioned before 2026-10-13. im_filemsglinks --- is a global (non tenant-sharded) table, so a single statement per DB is --- enough. Verified online on the test env (table is small). - -ALTER TABLE im_filemsglinks MODIFY msgid BIGINT DEFAULT NULL;