feat(planting-service): 添加 transfer_locked_count 列的数据库迁移

Prisma schema 中已定义 transferLockedCount 字段但缺少对应 migration,
导致运行时 PrismaClientKnownRequestError:
  The column planting_orders.transfer_locked_count does not exist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-26 22:57:15 -08:00
parent 7c95d1d425
commit 20a73a8d43
1 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable: 为认种订单添加转让锁定计数字段
ALTER TABLE "planting_orders" ADD COLUMN "transfer_locked_count" INTEGER NOT NULL DEFAULT 0;