Skip to content

Commit

Permalink
Merge pull request #86 from coronasafe/fix-prisma-schema
Browse files Browse the repository at this point in the history
change preset coords from int to float
  • Loading branch information
mathew-alex authored Sep 5, 2023
2 parents 06a91d5 + 850afce commit f60abbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "Preset" ALTER COLUMN "x" SET DATA TYPE DOUBLE PRECISION,
ALTER COLUMN "y" SET DATA TYPE DOUBLE PRECISION,
ALTER COLUMN "zoom" SET DEFAULT 0.0,
ALTER COLUMN "zoom" SET DATA TYPE DOUBLE PRECISION;
12 changes: 6 additions & 6 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ model Bed {
}

model Preset {
id Int @id @default(autoincrement())
x Int
y Int
zoom Int @default(0)
bed Bed @relation(fields: [bedId], references: [id])
bedId Int @unique
id Int @id @default(autoincrement())
x Float
y Float
zoom Float @default(0.0)
bed Bed @relation(fields: [bedId], references: [id])
bedId Int @unique
}

model DailyRound {
Expand Down

0 comments on commit f60abbd

Please sign in to comment.