refactor: change field name

This commit is contained in:
Methapon2001 2024-04-18 13:21:37 +07:00
parent d565a29a75
commit 624f4f2fd7
4 changed files with 32 additions and 15 deletions

View file

@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `telephoneHq` on the `Branch` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Branch" DROP COLUMN "telephoneHq",
ADD COLUMN "telephoneNo" TEXT;

View file

@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `telephoneNo` on table `Branch` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "Branch" ALTER COLUMN "telephoneNo" SET NOT NULL;

View file

@ -182,7 +182,7 @@ model Branch {
nameEN String
address String
addressEN String
telephoneHq String
telephoneNo String
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
provinceId String?