Skip to main content

prisma-cli-migrate-reset

prisma migrate reset

Zur Installation springen

Quellinformationen

Repository
prisma/cursor-plugin
Letzte Quellaktivität
6. Februar 2026 um 14:17
Erkannte Sprache von SKILL.md
Englisch
Sterne
9
Forks
1

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
2 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
prisma-cli-migrate-reset
description
prisma migrate reset
license
MIT
metadata
{"author":"prisma","version":"7.0.0"}
# prisma migrate reset Resets your database and re-applies all migrations. ## Command ```bash prisma migrate reset [options] ``` ## What It Does 1. **Drops** the database (if possible) or deletes all data/tables 2. **Re-creates** the database 3. **Applies** all migrations from `prisma/migrations/` 4. **Runs** the seed script (if configured) **Warning: All data will be lost.** ## Options | Option | Description | |--------|-------------| | `--force` / `-f` | Skip confirmation prompt | | `--schema` | Path to schema file | | `--config` | Custom path to your Prisma config file | ## Examples ### Basic reset ```bash prisma migrate reset ``` Prompts for confirmation in interactive terminals. ### Force reset (CI/Automation) ```bash prisma migrate reset --force ``` ### With custom schema ```bash prisma migrate reset --schema=./custom/schema.prisma ``` ## When to Use - **Development**: When you want a fresh start - **Testing**: Resetting test database before suites - **Drift Recovery**: When the database is out of sync and you can't migrate ## Behavior in v7 - In v6, `migrate reset` automatically ran `prisma generate`. - In v7, you may need to run `prisma generate` separately if you want to update the client, though `reset` focuses on the database state. - Seed script IS run by default after reset. ## Configuration Configure seed script in `prisma.config.ts` to run it automatically after reset: ```typescript export default defineConfig({ migrations: { seed: 'tsx prisma/seed.ts', }, }) ```
Auf GitHub ansehen