From df811c90b3ebfe1b514ddca032c3f1163238413b Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 30 Oct 2024 09:02:29 +0700 Subject: [PATCH] fix: typo --- prisma/migrations/20241030020133_fix_typos/migration.sql | 9 +++++++++ prisma/schema.prisma | 2 +- src/controllers/03-employee-work-controller.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 prisma/migrations/20241030020133_fix_typos/migration.sql diff --git a/prisma/migrations/20241030020133_fix_typos/migration.sql b/prisma/migrations/20241030020133_fix_typos/migration.sql new file mode 100644 index 0000000..d0d99e3 --- /dev/null +++ b/prisma/migrations/20241030020133_fix_typos/migration.sql @@ -0,0 +1,9 @@ +/* + Warnings: + + - You are about to drop the column `workPermitIssuDate` on the `EmployeeWork` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "EmployeeWork" DROP COLUMN "workPermitIssuDate", +ADD COLUMN "workPermitIssueDate" DATE; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 0e7bab1..ce5dff8 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -879,7 +879,7 @@ model EmployeeWork { jobType String? workplace String? workPermitNo String? - workPermitIssuDate DateTime? @db.Date + workPermitIssueDate DateTime? @db.Date workPermitExpireDate DateTime? @db.Date workEndDate DateTime? @db.Date remark String? diff --git a/src/controllers/03-employee-work-controller.ts b/src/controllers/03-employee-work-controller.ts index 2b2b8dd..3587b8c 100644 --- a/src/controllers/03-employee-work-controller.ts +++ b/src/controllers/03-employee-work-controller.ts @@ -38,7 +38,7 @@ type EmployeeWorkPayload = { jobType?: string | null; workplace?: string | null; workPermitNo?: string | null; - workPermitIssuDate?: Date | null; + workPermitIssueDate?: Date | null; workPermitExpireDate?: Date | null; workEndDate?: Date | null; remark?: string | null;