Skip to content
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

Include Prisma Client installation and client generation with migrate dev #4724

Merged
merged 16 commits into from
Nov 24, 2023
Merged
Changes from 10 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
6 changes: 4 additions & 2 deletions content/100-getting-started/01-quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ At this point, you have a Prisma schema but no database yet. Run the following c
npx prisma migrate dev --name init
```

This command did two things:
This command did three things:

1. It creates a new SQL migration file for this migration in the `prisma/migrations` directory.
1. It runs the SQL migration file against the database.
2. It runs the SQL migration file against the database.
3. Runs `prisma generate` under the hood, which installs Prisma Client and generates a Client based on your models.
nikolasburk marked this conversation as resolved.
Show resolved Hide resolved


Because the SQLite database file didn't exist before, the command also created it inside the `prisma` directory with the name `dev.db` as defined via the environment variable in the `.env` file.

Expand Down