refactor: change field name
This commit is contained in:
parent
d565a29a75
commit
624f4f2fd7
4 changed files with 32 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue