Backend & APISûr9292/100
Prisma CLI Migrate Reset (Prisma)
prisma migrate reset
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs prisma-cli-migrate-reset__prisma-cursor-plugin__skills-05e124fabbb0Prisma
prisma/cursor-plugin
Contenu à copier
---
name: prisma-cli-migrate-reset
description: prisma migrate reset
license: MIT
metadata:
origin: Prisma
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',
},
})
```Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Prisma CLI Migrate Reset (Prisma)
**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
In v6, `migrate reset` automatically ran `prisma generate`.
Comment utiliser Prisma CLI Migrate Reset (Prisma)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Prisma CLI Migrate Reset (Prisma)
Dis simplement à ton agent quelque chose comme :
Applique le skill prisma-cli-migrate-reset__prisma-cursor-plugin__skills-05e124fabbb0 à cette tâche
Utilise prisma-cli-migrate-reset__prisma-cursor-plugin__skills-05e124fabbb0 pour améliorer cette implémentation
Passe en revue ce sujet avec prisma-cli-migrate-reset__prisma-cursor-plugin__skills-05e124fabbb0
Skills liés à Prisma CLI Migrate Reset (Prisma)
Activate Site (Microsoft)
Activates and provisions a Power Pages website in a Power Platform environment via the Power Platform REST API. Use when the user wants to activate, provision, turn on, or enable a Power Pages website or portal.IA Core (TanStack)
Entry point for TanStack AI skills. Routes to chat-experience, tool-calling, media-generation, structured-outputs, adapter-configuration, ag-ui-protocol, middleware, locks, custom-backend-integration, and debug-logging, plus the skills shipped by companion packages (@tanstack/ai-persistence, @tanstack/ai-code-mode). Use chat() not streamText(), openaiText() not createOpenAI(), toServerSentEventsResponse() not manual SSE, middleware hooks not onEnd callbacks.api-connector-builder
Build a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integration without inventing a second architecture.