chore(backend): list_order迁移补齐+Task14类型修正落链+moments每页日志+MsgTypeParam派生+3处文档修正+Dockerfile打包migrations+DEPLOY补迁移步骤
- 9b0d0c133035: wechat_account.list_order 进迁移链(此前仅模型声明, 干净库 /api/accounts 即 500);sa.inspect 幂等守卫兼容已手动加列的 smoke.db - fe63c6789e94(验证中发现的预存缺口,超出原清单): Task 14 的 5 列模型 类型修正(4×URL String(1024)→Text, db_size Integer→BigInteger)从未落 链——纯 alembic 新库会复活 >1KB 链接截断;对齐后干净库 alembic check 全绿。SQLite message 表 batch 重建会掉 FTS 触发器+rowid 脱节(docstring 记明 ensure_fts+rebuild_fts 修复,smoke.db 已修复验证) - scrape_via_page: _iter_moments_pages 每页一行进度日志(镜像 _fetch_pages) - messages: MsgTypeParam=Literal[tuple(_MSG_TYPE_FILTER)] 派生,杜绝 双处罗列漂移(openapi enum 验证一致,492 绿含 422 行为) - 文档: ChatGroup 复合PK docstring/groups room_id 多行表述/测试名去 单行假设;Dockerfile 补 alembic.ini+migrations;DEPLOY 增「数据库 迁移」节(新库/旧库stamp路径/回填脚本显式DB_URL)+运维表升级行 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -262,9 +262,11 @@ class Customer(Base):
|
||||
class ChatGroup(Base):
|
||||
"""聊天群 — source: ``POST /wechatweb/chatroom/getChatroomList``.
|
||||
|
||||
PK ``room_id`` is the source ``chatRoomId`` (ends with ``@chatroom``).
|
||||
The raw ``memberIds`` (semicolon-joined wxids) is kept verbatim in
|
||||
``member_ids``; the parsed members are mirrored into :class:`GroupMember`.
|
||||
PK is composite (``room_id``, ``channel``, ``owner_account_id``) — the
|
||||
same room mirrors to one row per owning staff account; ``room_id`` is the
|
||||
source ``chatRoomId`` (ends with ``@chatroom``). The raw ``memberIds``
|
||||
(semicolon-joined wxids) is kept verbatim in ``member_ids``; the parsed
|
||||
members are mirrored into :class:`GroupMember`.
|
||||
"""
|
||||
|
||||
__tablename__ = "chat_group"
|
||||
|
||||
Reference in New Issue
Block a user