fix(account): deletion freeze trigger reads amount via jsonb so shared inserts don't fail; list the new tables (BUG-1118)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2f6581fff3
commit
3177ffe61d
@@ -44,3 +44,9 @@
|
||||
## 环境缺口
|
||||
|
||||
无 Docker(数据库测试);无 staging 测试账号与真机(浏览器全流程、注销 7 天后真实清除);阿里云密钥;协议文本未经律师审定。
|
||||
|
||||
## 门禁失败与修复(BUG-1118)
|
||||
|
||||
推 `2f6581ff` 后 staging 门禁 validate 失败(Gitea 日志需令牌,看不到)。本机排查:隐私扫描、Python 编译均通过;在本机用 PostgreSQL 17.11 预编译二进制 + 一个只支持 up / down / exec psql 的 `docker compose` 替身(脚本在会话临时目录,不入仓)跑全部 `database-*.test.ts`,比基线多 4 条失败:3 条是注销迁移的冻结触发器引用 `new.amount`(跨表复用,另两张表没有该列),1 条是表清单缺六张新表。修复后失败名单与基线逐条相同。
|
||||
|
||||
本机数据库测试方法(供以后无 Docker 时复用):`embedded-postgres-binaries-linux-amd64-17.x.jar` 解出 `initdb/pg_ctl/postgres`;用 `pg` 客户端重放 `deploy/postgres/001-bootstrap-roles.sh` 做模板库;替身 `docker` 在 `compose up` 时复制模板启动实例、`exec psql` 用 `pg` 客户端执行 `-Atc` / `-f -`。已知替身局限:不支持 `pg_dump`、部署脚本类测试(基线同样 6 条失败)。
|
||||
|
||||
Reference in New Issue
Block a user