Setting the file. One moment.
Subchapter 1.18
references/migrate-status.mdMarkdown1 KBView on GitHub
prisma migrate status [options]_prisma_migrations table| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
prisma migrate statusOutput example (Up to date):
Database schema is up to date!Output example (Pending):
Following migration have not yet been applied:
20240115120000_add_user
To apply migrations in development, run:
prisma migrate dev
To apply migrations in production, run:
prisma migrate deploymigrate dev complaining about drift?migrate deploy) or if a deployment failed0: Success (may have pending migrations, but command ran successfully)1: ErrorTo check for pending migrations programmatically, you might need to parse the output or use migrate diff with exit code flags.