Skip to content

feat(mysql): 补齐初始化表结构 - #68

Draft
xiaorongnie wants to merge 1 commit into
masterfrom
codex/card-additional-schema
Draft

xiaorongnie wants to merge 1 commit into
masterfrom
codex/card-additional-schema

Conversation

@xiaorongnie

@xiaorongnie xiaorongnie commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

按后端变更时间同步的初始化表结构

后端提交日期 对应改动 Docker 初始化 SQL 中的变更
2026-08-05 第三方通知(Tracker-V2 #657) 移除 user_line_config 建表语句,新增 user_third_notify_config 建表语句;将 user_subscribe_config.notify_pipe 的渠道注释由 LINE 改为 THIRD
2026-08-21 车辆加油报表(Tracker-V2 #673) ledger_timeline.flag 注释中增加 13=加油;新增 (organize_id, vehicle_id, flag, start_time) 索引 idx_flag_time
2026-09-07 驾驶员合规报表(Tracker-V2 #654) 新增 ledger_trip_driver_segment 表,包含驾驶员行程区段字段及主键、唯一索引和查询索引。
2026-09-20 刷卡区间轨迹统计(Tracker-V2 #722) jtt808_card 新增 additional JSON 字段,以及 (organize_id, vehicle_id, card_id, event_time) 索引 idx_card_match

修改文件:mysql8/initdb/01-maintain-init-table.sql。该文件供新数据库初始化使用;已有数据库由 Tracker-V2 的迁移脚本更新。

验证

  • git diff --check 通过。
  • 已对照上述后端提交的表结构和迁移脚本核对。

@xiaorongnie
xiaorongnie force-pushed the codex/card-additional-schema branch from e64472d to 3e26c31 Compare September 20, 2026 03:35
@xiaorongnie xiaorongnie changed the title feat(mysql): 同步刷卡附加字段和配对索引 feat(mysql): 补齐初始化表结构 Sep 20, 2026
@xiaorongnie
xiaorongnie marked this pull request as draft September 20, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants