askill
prisma-cli-migrate-status

prisma-cli-migrate-statusSafety 100Repository

prisma migrate status

3 stars
1.2k downloads
Updated 2/9/2026

Package Files

Loading files...
SKILL.md

prisma migrate status

Checks the status of your database migrations.

Command

prisma migrate status [options]

What It Does

  • Connects to the database
  • Checks the _prisma_migrations table
  • Compares applied migrations with local migration files
  • Reports:
    • Status: Database is up-to-date or behind
    • Unapplied migrations: Count of pending migrations
    • Missing migrations: Migrations present in DB but missing locally
    • Failed migrations: Any migrations that failed to apply

Options

OptionDescription
--schemaPath to schema file
--configCustom path to your Prisma config file

Examples

Check status

prisma migrate status

Output 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 deploy

When to Use

  • Debugging: Why is migrate dev complaining about drift?
  • CI/CD: Verify database state before deploying
  • Production: Check if migrations are needed (migrate deploy) or if a deployment failed

Exit Codes

  • 0: Success (may have pending migrations, but command ran successfully)
  • 1: Error

To check for pending migrations programmatically, you might need to parse the output or use migrate diff with exit code flags.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 3/2/2026

High-quality reference skill for Prisma's migrate status command. Well-structured with clear command syntax, options table, output examples, and a useful 'when to use' section. Covers what the command does, examples with expected output, and exit codes. Located in dedicated skills folder suggesting it's meant for broader use. Minor gaps include troubleshooting tips. Read-only and safe to execute."

100
88
60
75
90

Metadata

Licenseunknown
Version-
Updated2/9/2026
Publisherprisma

Tags

ci-cddatabase