Skip to content

Commit 69f8c2e

Browse files
committed
chore(db): switch from cockroachdb to postgres
1 parent 620988f commit 69f8c2e

File tree

5 files changed

+36
-201
lines changed

5 files changed

+36
-201
lines changed

db/migrations/20240811082047_init/migration.sql

Lines changed: 0 additions & 162 deletions
This file was deleted.

db/migrations/migration_lock.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

db/schema.prisma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ generator client {
44
}
55

66
datasource db {
7-
provider = "cockroachdb"
7+
provider = "postgresql"
88
url = env("DATABASE_URL")
99
}
1010

@@ -61,7 +61,7 @@ model ClubMembership {
6161
// -----------------------------------------
6262
// ---------------ACTIVITY RECORDS------------
6363
// -----------------------------------------
64-
64+
//
6565
model ActivityRecord {
6666
id String @id @default(dbgenerated("gen_random_uuid()"))
6767
clubId Int // Link to Club model
@@ -135,7 +135,7 @@ enum Periods {
135135
}
136136

137137
model ReservationRecord {
138-
id Int @id @unique @default(sequence())
138+
id String @id @default(dbgenerated("gen_random_uuid()"))
139139
creationTimestamp DateTime @default(now())
140140
user User @relation(fields: [userId], references: [id])
141141
userId String

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"nuxt": "^3.13.1",
7474
"nuxt-icon": "1.0.0-beta.7",
7575
"nuxt-svgo": "^4.0.5",
76-
"prisma": "5.19.1",
76+
"prisma": "5.20.0",
7777
"shadcn-nuxt": "^0.10.4",
7878
"ts-node": "^10.9.2",
7979
"tsx": "^4.19.1",

pnpm-lock.yaml

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)