mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 12:45:17 +08:00
fix(glossary): 修复历史 V1 漂移并建立 V2 迁移
This commit is contained in:
+7
-5
@@ -38,7 +38,7 @@ job/unit/provider run 状态;`translation.memory.summary/query/confirm` 提供
|
||||
Rust-owned TM 的摘要、source/context 查询和显式 trusted 确认,`bat-api` 仅作
|
||||
typed 管理转发。当前下载实现使用默认 8 个独立 worker,完成后动态领取
|
||||
任务,最终资源报告按 pull plan 顺序输出。
|
||||
项目级 Glossary V1 位于 `<output>/glossary.sqlite`,独立于 release task 和 TM;
|
||||
项目级 Glossary V2 位于 `<output>/glossary.sqlite`,独立于 release task 和 TM;
|
||||
Rust `bat` 持有 term/alias/recommended/allowed/category/priority、全局或
|
||||
TextUnit scope、source history 和 approved review。worker、TM 复用、人工 task
|
||||
结果和 workbench publish 都执行确定性 QA;blocking deviation 必须携带
|
||||
@@ -48,10 +48,12 @@ TextUnit scope、source history 和 approved review。worker、TM 复用、人
|
||||
|
||||
三个长期 SQLite owner 现在统一使用只读 schema preflight、精确 component
|
||||
fingerprint 和 `BEGIN IMMEDIATE` writer transaction:Translation Tasks 从 V1
|
||||
按显式 `v1 -> v2` step 迁移,当前版本为 V2;Translation Memory 和 Glossary
|
||||
当前版本均为 V1。future、未知或版本与结构不一致的数据库在任何 schema/data
|
||||
mutation 前 fail closed;migration 失败会 rollback,已知无
|
||||
`schema_migrations` 表的历史 fingerprint 可安全补建版本表后重试。正式 schema
|
||||
按显式 `v1 -> v2` step 迁移,当前版本为 V2;Translation Memory 当前版本为 V1,
|
||||
Glossary 当前版本为 V2。Glossary V2 正式吸收历史上未升版本的
|
||||
`glossary_term_deletions` schema drift:原始 V1-A 会在事务内创建 deletion audit
|
||||
表,带 deletion audit 的 V1-B 只提升 bookkeeping version。future、未知或版本与结构
|
||||
不一致的数据库在任何 schema/data mutation 前 fail closed;migration 失败会 rollback,
|
||||
已知无 `schema_migrations` 表的历史 fingerprint 可安全补建版本表后重试。正式 schema
|
||||
路径不再使用 `ensure_column` 隐式补列。
|
||||
|
||||
`localized.status` 现将 generic manifest schema/contract 与已发布 artifact integrity
|
||||
|
||||
Reference in New Issue
Block a user