blitz prisma migrate diff

Compares the database schema from two arbitrary sources, and outputs the differences either as a human-readable summary (by default) or an executable script

Options

NameDescription
-h, --helpDisplay this help message
--from-url <full url>A datasource url
--to-url <full url>A datasource url
--from-emptyFlag to assume from is an empty datamodel
--to-emptyFlag to assume to is an empty datamodel
--from-schema-datamodel <filepath>Path to a Prisma schema file, uses the 'datamodel' for the diff
--to-schema-datamodel <filepath>Path to a Prisma schema file, uses the 'datamodel' for the diff
--from-schema-datasource <filepath>Path to a Prisma schema file, uses the 'datasource url' for the diff
--to-schema-datasource <filepath>Path to a Prisma schema file, uses the 'datasource url' for the diff
--from-migrations <folder>Path to the Prisma Migrate migrations directory
--to-migrations <folder>Path to the Prisma Migrate migrations directory
--shadow-database-url <full url>URL for the shadow database. Only required if using --from-migrations or --to-migrations
--script <filepath>Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB)
--exit-codeChange the exit code behavior to signal if the diff is empty or not (Empty: 0, Error: 1, Not empty: 2). Default behavior is Success: 0, Error: 1.`