build(deps): migrate to Prisma 7 (driver adapter)#28
Merged
Conversation
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
b78840d to
986b706
Compare
Prisma 7 removes the datasource `url` from schema.prisma and requires a
driver adapter at runtime.
- bump @prisma/client and prisma to ^7.8.0
- add @prisma/adapter-pg + pg (driver adapter / connection pool)
- move the Migrate connection URL to prisma.config.ts (datasource.url)
- drop `url = env("DATABASE_URL")` from schema.prisma datasource
- wire PrismaPg adapter into lib/prisma.ts PrismaClient
Resolves the implicit-any type error from the client-7 / CLI-6 mismatch
in the original Dependabot PR. `next build` typechecks clean.
986b706 to
970890c
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Supersedes the plain Dependabot bump. Prisma 7 removes the schema-level datasource
urland requires a driver adapter at runtime.prisma.config.tsurl = env("DATABASE_URL")from schema datasourcelib/prisma.tsFixes the implicit-any type error from the original client-7 / CLI-6 mismatch.
next buildtypechecks clean.