chore: add migration
This commit is contained in:
parent
ee1569e529
commit
ddb2155c44
3 changed files with 20 additions and 3 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `keycloakId` on the `User` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "User" DROP COLUMN "keycloakId";
|
||||||
11
prisma/migrations/20240417041541_move_field/migration.sql
Normal file
11
prisma/migrations/20240417041541_move_field/migration.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `lineId` on the `BranchContact` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Branch" ADD COLUMN "lineId" TEXT;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "BranchContact" DROP COLUMN "lineId";
|
||||||
|
|
@ -93,6 +93,7 @@ model Branch {
|
||||||
|
|
||||||
email String
|
email String
|
||||||
telephoneNo String
|
telephoneNo String
|
||||||
|
lineId String?
|
||||||
|
|
||||||
latitude String
|
latitude String
|
||||||
longitude String
|
longitude String
|
||||||
|
|
@ -117,7 +118,6 @@ model Branch {
|
||||||
model BranchContact {
|
model BranchContact {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
telephoneNo String
|
telephoneNo String
|
||||||
lineId String
|
|
||||||
|
|
||||||
branch Branch @relation(fields: [branchId], references: [id], onDelete: Cascade)
|
branch Branch @relation(fields: [branchId], references: [id], onDelete: Cascade)
|
||||||
branchId String
|
branchId String
|
||||||
|
|
@ -153,8 +153,6 @@ enum UserType {
|
||||||
model User {
|
model User {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
|
|
||||||
keycloakId String
|
|
||||||
|
|
||||||
code String?
|
code String?
|
||||||
firstName String
|
firstName String
|
||||||
firstNameEN String
|
firstNameEN String
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue