-
Notifications
You must be signed in to change notification settings - Fork 1
chore: Prisma 7 #864
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
Merged
+697
−662
Merged
chore: Prisma 7 #864
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b29a7bf
Prisma 7
CarlosGamero 072ae76
Adjusting client generation for prisma 7
CarlosGamero c8d4f22
Adjusting commands
CarlosGamero f388646
Update db position
CarlosGamero 91b3231
Fix imports
CarlosGamero 348b56d
More import fixes
CarlosGamero 200cb49
Fix factory
CarlosGamero 8c7d6ee
Factory tests fixed
CarlosGamero 70b6604
Lint fixes
CarlosGamero 0336555
Fix transaction isolation level
CarlosGamero e4da28b
Import fixes
CarlosGamero a391710
Improving file org
CarlosGamero 5cbac3b
minor fixes
CarlosGamero 6ceb16f
Minor transaction improvements
CarlosGamero 20f5d71
Removing metrics plugin as it is no longer supported with prisma 7
CarlosGamero 5cb0f21
plugin removal
CarlosGamero f6895ad
Adding support for prisma query metrics
CarlosGamero 3516643
Removing unused deps
CarlosGamero 7c856f9
node-core update + lint fix
CarlosGamero 00233cb
Lint fixes
CarlosGamero b7c26b8
using extended client on factory
CarlosGamero 7cbf4e2
readme changes
CarlosGamero 3c94f56
Lint fixes
CarlosGamero db530d0
Fix CI lint
CarlosGamero b282309
Merge branch 'main' into chore/prisma_7
CarlosGamero 90a6fc0
Merge branch 'main' into chore/prisma_7
CarlosGamero 067096c
PR feedback
CarlosGamero 7d7ff39
Merge branch 'main' into chore/prisma_7
CarlosGamero 6454bd3
Fixing CI
CarlosGamero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| DATABASE_URL=postgresql://testuser:pass@localhost:26257/test | ||
| DATABASE_URL=postgresql://testuser:pass@localhost:26257/test?sslmode=no-verify | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ node_modules | |
| dist | ||
| coverage | ||
| .eslintcache | ||
| test/db-client/** | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import 'dotenv/config' | ||
| import { defineConfig, env } from 'prisma/config' | ||
|
|
||
| // biome-ignore lint/style/noDefaultExport: prisma config requires default export | ||
| export default defineConfig({ | ||
| datasource: { url: env('DATABASE_URL') }, | ||
| schema: './schema.prisma', | ||
| migrations: { | ||
| path: './migrations', | ||
| }, | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| // This is your Prisma schema file, | ||
| // learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
|
||
| generator client { | ||
| provider = "prisma-client-js" | ||
| previewFeatures = ["metrics"] | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed from Prisma 7 |
||
| } | ||
|
|
||
| datasource db { | ||
| provider = "cockroachdb" | ||
| url = env("DATABASE_URL") | ||
| relationMode = "prisma" | ||
| } | ||
|
|
||
| generator client { | ||
| provider = "prisma-client" | ||
| output = "../test/db-client" | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Output is now mandatory |
||
| } | ||
|
|
||
| model Item1 { | ||
| id String @id @unique @default(dbgenerated("gen_random_ulid()")) @db.Uuid | ||
| value String | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prisma/prisma#27611