schema.prisma 中 ContributionRecord / SystemContributionRecord / UnallocatedContribution 三个模型均新增了 transferOrderNo 字段, 但历史上只有 0001_init 一个迁移文件,导致生产数据库中缺少该列。 新增迁移 20260228000001_add_transfer_order_no: - ALTER TABLE contribution_records ADD COLUMN transfer_order_no - ALTER TABLE system_contribution_records ADD COLUMN transfer_order_no - ALTER TABLE unallocated_contributions ADD COLUMN transfer_order_no - 对应 3 个索引(与 schema @@index 一致) - 使用 IF NOT EXISTS 保证幂等性 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| prisma | ||
| src | ||
| .env.example | ||
| DEVELOPMENT_GUIDE.md | ||
| Dockerfile | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||