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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ yarn-error.log*
# wrangler project
.dev.vars
.wrangler/

.idea
# Others
.env
.cursor
11 changes: 6 additions & 5 deletions content/200-orm/100-prisma-schema/10-overview/04-location.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,19 @@ You can do this in either of three ways:
}
```
- set the `schema` property in [`prisma.config.ts`](/orm/reference/prisma-config-reference#schema) ( for Prisma ORM v7):
```ts
```ts
import { defineConfig, env } from 'prisma/config'
import 'dotenv/config'

export default defineConfig({
schema: 'prisma/schema.prisma',
- schema: 'prisma/schema.prisma',
+ schema: 'prisma',
migrations: {
path: 'prisma/migrations',
'prisma/migrations',
seed: 'tsx prisma/seed.ts',
},
datasource: {
url: env('DATABASE_URL'),
{
env('DATABASE_URL'),
},
})
```
Expand Down