Create a schema subdirectory under your prisma directory.
Move your schema.prisma into this directory.
You are now set up with a multi-file Prisma Schema! Add as many or as few .prisma files to the new prisma/schema directory.
When running commands where a Prisma Schema file is expected to be provided, you can now define a Prisma Schema directory. This includes Prisma CLI commands that use the --schema option as well as defining schema via package.json
Our tooling has also been updated to handle multiple Prisma Schema files. This includes our Visual Studio Code extension and tools like database introspection, which will deposit new models in a introspected.prisma file. Existing models will be updated in the file they are found.
To learn more, please refer to our official documentation and announcement blog post. If you try out prismaSchemaFolder, please let us know!
Interesting Bug Fixes
Fix for PostgreSQL prepared statement caching for raw queries
Fix for SQL Server introspection of (deprecated) CREATE DEFAULT
Our Introspection logic crashed on encountering certain multi-line CREATE DEFAULT, a deprecated way to define defaults in SQL Server. As many SQL Server users are working with established databases, this happened frequently enough that we now explicitly ignore these defaults instead of crashing.
Fix for Cloudflare D1’s lower parameter limit
... (truncated)
Commits
79de5cf chore(deps): update dependency @swc/core to v1.5.24 (#24364)
d50b007 chore(deps): update dependency esbuild to v0.21.4 (#24322)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @prisma/generator-helper from 5.8.1 to 5.15.0.
Release notes
Sourced from
@prisma/generator-helper
's releases.... (truncated)
Commits
79de5cf
chore(deps): update dependency@swc/core
to v1.5.24 (#24364)d50b007
chore(deps): update dependency esbuild to v0.21.4 (#24322)c84bed5
chore(deps): update devdependencies patch (non-major) (#24196)7ac5e4d
chore(deps): update dependency esbuild to v0.21.3 (#24254)ffd1040
chore(deps): update dependency esbuild to v0.21.2 (#24195)d2701d4
feat: create no models flag for generate command (#24160)ed38a8f
chore(deps): update dependency esbuild to v0.21.1 (#24110)4e72631
chore(deps): update devdependencies patch (non-major) (#24107)3220e3a
feat(client): add.createManyAndReturn()
top level method (#24064)5163677
chore(deps): update devdependencies patch (non-major) (#24045)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show