Why does prisma need to connect to the db if it on...
# orm-help
n
Why does prisma need to connect to the db if it only needs to write migrations?
Copy code
prisma migrate dev --create-only
The above command is only meant to create migrations but not execute them. It should NOT need to connect, For comparison, Django’s
makemigrations
can create the migrations without connecting to the database.
r
It’s because of this.
--create-only
also commits previous migrations, so it needs to connect to the database.
n
So, it is an open issue.
r
Yes. I would suggest adding the above use case to the issue as well.