Skip to content
Open
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
1 change: 1 addition & 0 deletions prisma.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import { defineConfig, env } from 'prisma/config';
export default defineConfig({
datasource: {
url: env('DATABASE_URL'),
directUrl: env("DIRECT_DATABASE_URL")
},
});
6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ generator client {
}

datasource db {
provider = "postgresql"
relationMode = "prisma"
provider = "postgresql"
relationMode = "prisma"
}
Comment on lines 7 to 10
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 The datasource db block fields lost their 2-space indentation, making them inconsistent with the generator client block above and the rest of the file.

Suggested change
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_DATABASE_URL")
relationMode = "prisma"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_DATABASE_URL")
relationMode = "prisma"
}

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!


model User {
Expand Down Expand Up @@ -398,4 +398,4 @@ model SessionReplaySaved {
@@index([visitId])
@@index([websiteId, createdAt])
@@map("session_replay_saved")
}
}