Create migration file without applying it #9691
-
Not sure If I'm missing something from the documentation but is there no way of generating a migration file using a command like |
Beta Was this translation helpful? Give feedback.
Answered by
TasinIshmam
Oct 11, 2021
Replies: 1 comment 1 reply
-
You can use the npx prisma migrate dev --create-only You can find more details in the reference for Prisma Migrate in the docs. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TasinIshmam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
--create-only
option to generate the migration file without applying it to the database. So the command will look like this:You can find more details in the reference for Prisma Migrate in the docs.