Skip to content

修复:增加数据库迁移账本与索引保护 - #51

Closed
damingishere-coder wants to merge 1 commit into
fix/stable-v1-p1-pipeline-checkpointfrom
fix/stable-v1-p1-migration-ledger
Closed

修复:增加数据库迁移账本与索引保护#51
damingishere-coder wants to merge 1 commit into
fix/stable-v1-p1-pipeline-checkpointfrom
fix/stable-v1-p1-migration-ledger

Conversation

@damingishere-coder

Copy link
Copy Markdown
Owner

目标

  • 建立 schema_migrations version/name/checksum/applied_at 迁移账本
  • 使用 BEGIN IMMEDIATE 串行提交新迁移与账本记录
  • 发布活动任务唯一索引改为先建并验证 v2,再删除旧索引
  • 重复数据、checksum/索引漂移、异常账本和 SQLite 索引错误全部 fail closed
  • 历史库首次写入前创建 SQLite Online Backup

验证

  • 新增 12 个隔离迁移回归
  • 完整 Pytest:663 passed
  • Ruff、Python Compileall、git diff --check 通过
  • 正式 workflow.sqlite3 的 size、mtime、SHA256 与修改前一致
  • Codemap Persistence:64/C → 73/C

边界

  • 本 PR 未重启正式服务、未迁移正式数据库
  • 旧版 executescript/列探测仍为 pre-ledger compatibility,留待独立轮次
  • 这是堆叠 PR,基于 P1.3b(修复:增加流水线断点恢复 #50),不要跳过前序 PR 合并

@damingishere-coder

Copy link
Copy Markdown
Owner Author

该堆叠 PR 的变更已由完整集成 PR #60 合并到 master,现作为 superseded 收口。保留分支,不删除历史。

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.

1 participant