From 9701707f517b89af6b9c41ff6a09a4ec8710c8e8 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 6 Dec 2025 21:36:36 +0800 Subject: [PATCH] [d1] Fix command to generate SQL for User table --- src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx b/src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx index 710a1574a6b276b..7d46dc52367fdbe 100644 --- a/src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx +++ b/src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx @@ -205,7 +205,7 @@ Open the `schema.prisma` file and add the following `User` model to your schema: Now, run the following command in your terminal to generate the SQL statement that creates a `User` table equivalent to the `User` model above: ```sh -npx prisma migrate diff --from-empty --to-schema-datamodel ./prisma/schema.prisma --script --output migrations/0001_create_user_table.sql +npx prisma migrate diff --from-empty --to-schema ./prisma/schema.prisma --script --output migrations/0001_create_user_table.sql ``` This stores a SQL statement to create a new `User` table in your migration file from before, here is what it looks like: