From 5fa8b00d4f6f7e18fd292d4f90188047207ff28e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:54:26 +0700 Subject: [PATCH] chore: update migration --- .../20240614025514_remove_unintended_field/migration.sql | 8 ++++++++ prisma/schema.prisma | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20240614025514_remove_unintended_field/migration.sql diff --git a/prisma/migrations/20240614025514_remove_unintended_field/migration.sql b/prisma/migrations/20240614025514_remove_unintended_field/migration.sql new file mode 100644 index 0000000..f97abe5 --- /dev/null +++ b/prisma/migrations/20240614025514_remove_unintended_field/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - You are about to drop the column `productId` on the `WorkService` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "WorkService" DROP COLUMN "productId"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 20a2c4e..64f3b60 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -580,7 +580,6 @@ model WorkService { createdAt DateTime @default(now()) updateBy String? updatedAt DateTime @updatedAt - productId String? @@id([workId, serviceId]) }