fix: wrong data type
This commit is contained in:
parent
2c134aa68a
commit
23f52b137d
4 changed files with 30 additions and 15 deletions
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Changed the type of `branchNo` on the `CustomerBranch` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
||||
- Changed the type of `payDate` on the `CustomerBranch` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
||||
- Changed the type of `wageDate` on the `CustomerBranch` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranch" DROP COLUMN "branchNo",
|
||||
ADD COLUMN "branchNo" INTEGER NOT NULL,
|
||||
DROP COLUMN "payDate",
|
||||
ADD COLUMN "payDate" TIMESTAMP(3) NOT NULL,
|
||||
DROP COLUMN "wageDate",
|
||||
ADD COLUMN "wageDate" TIMESTAMP(3) NOT NULL;
|
||||
|
|
@ -349,7 +349,7 @@ model Customer {
|
|||
|
||||
model CustomerBranch {
|
||||
id String @id @default(uuid())
|
||||
branchNo String
|
||||
branchNo Int
|
||||
legalPersonNo String
|
||||
|
||||
name String
|
||||
|
|
@ -387,8 +387,8 @@ model CustomerBranch {
|
|||
jobPositionEN String
|
||||
jobDescription String
|
||||
saleEmployee String
|
||||
payDate String
|
||||
wageDate String
|
||||
payDate DateTime
|
||||
wageDate DateTime
|
||||
|
||||
status Status @default(CREATED)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue