From 9c4e47105d595fcf4a24018bbbc061a1e44ef55c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:06:33 +0700 Subject: [PATCH] chore: migration --- .../20240610074721_update_field/migration.sql | 11 +++++++++++ prisma/schema.prisma | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20240610074721_update_field/migration.sql diff --git a/prisma/migrations/20240610074721_update_field/migration.sql b/prisma/migrations/20240610074721_update_field/migration.sql new file mode 100644 index 0000000..d6e7653 --- /dev/null +++ b/prisma/migrations/20240610074721_update_field/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - You are about to drop the column `imageUrl` on the `Product` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "EmployeeWork" ADD COLUMN "remark" TEXT; + +-- AlterTable +ALTER TABLE "Product" DROP COLUMN "imageUrl"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index f5f8e21..a65e776 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -488,6 +488,7 @@ model EmployeeWork { workPermitIssuDate DateTime workPermitExpireDate DateTime workEndDate DateTime + remark String? createdBy String? createdAt DateTime @default(now()) @@ -610,7 +611,6 @@ model Product { price Int agentPrice Int serviceCharge Int - imageUrl String status Status @default(CREATED)