Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change preset coords from int to float #86

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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