chore(db): PostgreSQL 迁移统一分支 - #299
Conversation
✅ PostgreSQL access/session validation passedValidated branch:
|
❌ PostgreSQL unified validation failedValidated branch:
Full diagnostic log is attached to the workflow run artifact. |
❌ PostgreSQL unified validation failedValidated branch:
Full diagnostic log is attached to the workflow run artifact. |
|
/validate-pg-unified |
❌ PostgreSQL unified validation failedValidated branch:
Full diagnostic log is attached to the workflow run artifact. |
|
/validate-pg-unified |
✅ PostgreSQL unified validation passedValidated branch:
Full diagnostic log is attached to the workflow run artifact. |
|
/validate-pg-unified |
✅ PostgreSQL unified validation passedValidated branch:
Full diagnostic log is attached to the workflow run artifact. |
|
/validate-pg-unified-batch-b |
✅ PostgreSQL Batch B validation passedValidated branch:
|
|
/validate-pg-unified-batch-b |
|
/validate-pg-unified-batch-b-final |
✅ PostgreSQL Batch B validation passedValidated branch:
|
#249 Batch B 已落地最终 Head: 本轮直接在
最终验证全部通过:npm ci、TypeScript、SQLite direct-access audit、PostgreSQL schema parity、Runtime/SQL dialect、完整 SQLite 回归、真实 PostgreSQL 回归、生产 backend bundle。 一次性验证工作流已从 |
|
/validate-pg-permissions |
2 similar comments
|
/validate-pg-permissions |
|
/validate-pg-permissions |
|
本轮已直接在 |
|
/validate-pg-access-session |
2 similar comments
|
/validate-pg-access-session |
|
/validate-pg-access-session |
Merge main into pg-migration-unified before continuing PostgreSQL subdocument structure migration.
Merge the temporary command-workflow cleanup from main into pg-migration-unified.
本轮迁移完成
下一切片进入 Block Patch / noteTransfer / notebook / knowledge-tree 跨驱动复合事务收口。PR 继续保持 Draft, |
目的
所有未完成的 PostgreSQL 迁移继续统一在
pg-migration-unified推进,不拆分新的长期迁移分支。PR 继续保持 Draft;当前仍是 PostgreSQL runtime-only,不宣称可以生产切换。主线同步状态
main@c2069b2971f23eca17ed49b9221a343ca6cc5fa3pg-migration-unified@31bdeae22a7bef30e0c68fe49d9e697e33f3cedebehind_by = 0、ahead_by = 695main清理。当前已开放的 PostgreSQL Runtime
Notes HTTP Runtime
GET /api/notesPOST /api/notesGET /api/notes/trash/summaryDELETE /api/notes/trash/emptyGET /api/notes/:idGET /api/notes/:id?slim=1PUT /api/notes/:idPUT /api/notes/reorder/batchDELETE /api/notes/:idRealtime / Yjs
WS /wsy:updatePostgreSQL 持久化与广播WS /ws/subdocuments本轮完成:Subdocument 结构变化事务与 root manifest 重建
新协议
新增 WebSocket 消息:
y:subdoc:structurey:subdoc:structure-ack客户端提交完整 Tiptap 文档、当前 generation 和稳定
operationId。服务端只接受已加入 manifest 且拥有写权限的连接。原子事务边界
一次结构变化在同一 PostgreSQL 事务内完成:
notes.content、contentText、version;note_versions;note_blocks_index;note_yupdates/note_ysnapshots;migration
0014新增
note_y_subdocument_structure_operations:(noteId, operationId)主键;operationId + content重试直接重放成功结果;operationId搭配不同正文返回SUBDOCUMENT_OPERATION_REUSED;安全与协议限制
前序已完成
y:update持久化、广播、版本冲突保护;/ws与/ws/subdocumentsupgrade dispatcher 共存;最终验证(当前提交
31bdeae2)PostgreSQL Runtime
30599921383✅0001~0014打包 ✅PostgreSQL Yjs Subdocuments
30599921374✅0001~0014bootstrap / idempotency ✅0013、0014打包 ✅PostgreSQL Runtime Smoke
30599921355✅PostgreSQL Permissions
30599921401✅其他关键门禁
30599921406✅30599921393✅30599921362:前后端回归与类型检查 ✅下一迁移切片
进入 Block Patch / noteTransfer / notebook / knowledge-tree 跨驱动事务收口:
仍待后续阶段
businessRoutesReady = false,PR 继续保持 Draft。