Skip to content

fix: update prisma migration command#28350

Open
Tutuviz wants to merge 2 commits intocloudflare:productionfrom
Tutuviz:patch-2
Open

fix: update prisma migration command#28350
Tutuviz wants to merge 2 commits intocloudflare:productionfrom
Tutuviz:patch-2

Conversation

@Tutuviz
Copy link

@Tutuviz Tutuviz commented Feb 15, 2026

Summary

As in prisma 7.0.0, for prisma migrate diff, there was a removal the following flags:

  • prisma --[from/to]-schema-datamodel - This is now replaced with just --[from/to]-schema with the same usage. ref

Documentation checklist

@github-actions github-actions bot added product:d1 D1: https://developers.cloudflare.com/d1/ size/xs labels Feb 15, 2026
@angelicasanchez73491-a11y

This comment was marked as off-topic.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should note that this is different between versions in a TabItem (Prisma 7 vs. Prisma 6) so that this isn't surprising?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice suggestion, just added that, let me know if there is any nomenclature changes needed also

image

@Trish1980

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:d1 D1: https://developers.cloudflare.com/d1/ size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants