Skip to content

Commit

Permalink
fix: add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsbergPhilip committed Nov 15, 2024
1 parent 3ce18ba commit 5613063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Bot" ALTER COLUMN "teamId" DROP NOT NULL;
2 changes: 1 addition & 1 deletion packages/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ model Bot {
createTimeStamp DateTime @default(now()) @db.Timestamptz(6)
updateTimeStamp DateTime @default(now()) @db.Timestamptz(6)
password String? @db.VarChar(300)
teamId String @db.Uuid
teamId String? @db.Uuid
team Team? @relation(fields: [teamId], references: [id], onDelete: Cascade)
highscores Highscore[]
recordings Recording[]
Expand Down

0 comments on commit 5613063

Please sign in to comment.