Skip to content

Create migration file without applying it #9691

Answered by TasinIshmam
siggibk asked this question in Q&A
Discussion options

You must be logged in to vote

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:

npx prisma migrate dev --create-only

You can find more details in the reference for Prisma Migrate in the docs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NicolasEspiau-stilll
Comment options

Answer selected by TasinIshmam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants