Arun Kumar
07/15/2021, 12:48 PMmigrate deploy
command doesn't rely on the schema file for migrations. From where does it fetch the DB URL?Ryan
07/15/2021, 12:50 PMRyan
07/15/2021, 12:50 PMArun Kumar
07/15/2021, 12:54 PMArun Kumar
07/15/2021, 12:54 PMThe 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.
Ryan
07/15/2021, 12:57 PMschema.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.janpio