migration show
Inspect a Prisma ORM migration package.
migration show displays the operations, statement preview, and metadata for one migration package.
Use this command during review before applying a migration package. The command is offline. It does not consult the database.
Usage
bunx prisma@latest migration show <target>Options
| Argument or option | What it does |
|---|---|
<target> | The migration to inspect: a directory name, a hash or hash prefix, a ref, or a path. |
--config <path> | Read this config file instead of ./prisma.config.ts. |
--json | Prints a machine-readable result. |
Examples
bunx prisma@latest migration show 20260101_100000_add_user
bunx prisma@latest migration show a1b2c3
bunx prisma@latest migration show migrations/app/20260101_100000_add_user
bunx prisma@latest migration show 20260101_100000_add_user --jsonWhat to check
Before applying, review:
- the source and destination contract hashes
- the planned operations
- generated SQL statements or operation payloads
- the migration's metadata
