prisma-next migration show
Inspect a Prisma Next migration package.
prisma-next migration show displays the operations, statement preview, and metadata for a migration package.
Use this command during review before applying a migration package.
Usage
prisma-next migration showPass a directory path or migration hash prefix to inspect a specific migration:
prisma-next migration show sha256:a1b2c3Options
| Option | What it does |
|---|---|
[target] | Migration path or migration hash prefix. Defaults to the latest migration. |
--config <path> | Reads a specific prisma-next.config.ts file. |
--json | Prints a machine-readable result. |
Examples
prisma-next migration show
prisma-next migration show ./migrations/app/20260515T1200_add-users
prisma-next migration show sha256:a1b2c3 --jsonWhat to check
Before applying, review:
- the source and destination contract hashes
- the planned operations
- generated SQL statements or operation payloads
- any extension-space migrations included with the application migration