From 20a73a8d43b9ca61fef6367f375c92ea13741d71 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 26 Feb 2026 22:57:15 -0800 Subject: [PATCH] =?UTF-8?q?feat(planting-service):=20=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?transfer=5Flocked=5Fcount=20=E5=88=97=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prisma schema 中已定义 transferLockedCount 字段但缺少对应 migration, 导致运行时 PrismaClientKnownRequestError: The column planting_orders.transfer_locked_count does not exist Co-Authored-By: Claude Opus 4.6 --- .../20260227000000_add_transfer_locked_count/migration.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 backend/services/planting-service/prisma/migrations/20260227000000_add_transfer_locked_count/migration.sql diff --git a/backend/services/planting-service/prisma/migrations/20260227000000_add_transfer_locked_count/migration.sql b/backend/services/planting-service/prisma/migrations/20260227000000_add_transfer_locked_count/migration.sql new file mode 100644 index 00000000..7ed87d67 --- /dev/null +++ b/backend/services/planting-service/prisma/migrations/20260227000000_add_transfer_locked_count/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable: 为认种订单添加转让锁定计数字段 +ALTER TABLE "planting_orders" ADD COLUMN "transfer_locked_count" INTEGER NOT NULL DEFAULT 0;