Skip to content

Commit 84dc156

Browse files
authored
[D1] Fix prisma migration command (#16547)
1 parent 97d081d commit 84dc156

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/d1/tutorials/d1-and-prisma-orm

1 file changed

+1
-1
lines changed

src/content/docs/d1/tutorials/d1-and-prisma-orm/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ model User {
166166
Now, run the following command in your terminal to generate the SQL statement that creates a `User` table equivalent to the `User` model above:
167167

168168
```sh
169-
npx prisma migrate diff --from-empty --to-schema-datamodel ./prisma/schema.prisma --script > migrations/0001_create_user_table.sql
169+
npx prisma migrate diff --from-empty --to-schema-datamodel ./prisma/schema.prisma --script --output migrations/0001_create_user_table.sql
170170
```
171171

172172
This stores a SQL statement to create a new `User` table in your migration file from before, here is what it looks like:

0 commit comments

Comments
 (0)