OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add prisma/cursor-plugin --skill prisma-cli-migrate-dev
prisma migrate dev. Reference when using this Prisma feature.
npx skills add prisma/cursor-plugin --skill prisma-cli-migrate-dev
Creates and applies migrations during development. Requires a shadow database.
_prisma_migrations table| Option | Description |
|---|---|
--name / -n | Name the migration |
--create-only | Create a new migration but do not apply it |
--schema | Custom path to your Prisma schema |
--config | Custom path to your Prisma config file |
--url | Override the datasource URL from the Prisma config file |
--skip-generate - Run prisma generate explicitly--skip-seed - Run prisma db seed explicitlyPrompts for migration name if schema changed.
Useful for reviewing migration SQL before applying.
Created in prisma/migrations/:
If migrate dev detects drift (manual database changes or edited migrations), it prompts to reset:
migrate deploy)migrate deploy)db push instead)When a migration would cause data loss:
migrate dev requires a shadow database for drift detection. Configure in prisma.config.ts:
For local Prisma Postgres (prisma dev), shadow database is handled automatically.