prisma-cli-migrate-status

tarafından prisma

prisma migrate durumu

npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-status

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.

prisma tarafından daha fazla skill

prisma-cli-migrate-reset
prisma
prisma migrate reset
official
prisma-cli-validate
prisma
prisma doğrulama. Bu Prisma özelliğini kullanırken başvuru yapın.
official
prisma-next-extension-upgrade
prisma
Upgrade Prisma Next in your extension. Bumps every `@prisma-next/*` dependency to the requested target (or npm `latest`), runs the per-transition upgrade…
official
adr-review
prisma
Bir veya daha fazla ADR'yi yeni bir gözle (önceden bağlamı olmayan bir ekip üyesi olarak) inceleyin, anlatı ve yapısal sorunları belirleyin, ardından yeniden yazın. Şu durumlarda kullanın…
official
prisma-next-upgrade
prisma
Upgrade Prisma Next in your app. Bumps every `@prisma-next/*` dependency from the version pinned in the lockfile to the requested target (or npm `latest`),…
official
prisma-cli
prisma
Prisma CLI komutları, seçenekleri ve iş akışları için kurulum, geçişler ve veritabanı işlemlerini kapsayan eksiksiz referans. Önceliğe göre düzenlenmiş 20'den fazla komutu içerir: kurulum (init), oluşturma (generate), geliştirme (dev), veritabanı işlemleri (db pull/push/seed/execute) ve geçişler (migrate dev/deploy/reset/status/diff/resolve). Prisma 7.x değişikliklerini içerir: yeni prisma.config.ts yapılandırma dosyası, kaldırılan bayraklar (--skip-generate, --skip-seed, --schema, --url) ve açık...
official
prisma-client-api
prisma
Prisma Client API referansının tamamı: model sorguları, CRUD işlemleri, filtreleme, ilişkiler ve işlemler. findUnique, findMany, create, update, delete, upsert ve dönüş varyantlarıyla toplu işlemler dahil 17 model sorgulama yöntemini kapsar. Sonuçları şekillendirmek için select, include, omit, orderBy, take, skip, cursor ve distinct sorgu seçenekleri sunar. Eşitlik, içerme, başlangıç, küçüktür, büyüktür gibi skaler ve mantıksal filtre operatörlerinin yanı sıra some gibi ilişki filtrelerini içerir.
official
prisma-compute
prisma
Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps/deployments/build logs/domains, `@prisma/cli agent install`, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte,...
developmentdevopsofficial