I just read an article that `migrate deploy` comma...
# orm-help
a
I just read an article that
migrate deploy
command doesn't rely on the schema file for migrations. From where does it fetch the DB URL?
r
It does read the schema for the if the database URL is defined directly or via an environment variable defined.
Can you share the link to the docs where this is written?
Copy code
The prisma migrate deploy command, which is used to deploy changes to staging, testing, and production environments, only runs migration files. It does not use the Prisma schema file.
r
This means that it does not use the models defined in your
schema.prisma
but the
.sql
files from the
migrations
folder. It does read your
schema.prisma
as without that it wouldn’t know the environment variable for the database URL.
1
j
We should add that to the last sentence @Ryan. Something like "... to get the data model."
plus one +1 1