skills/prisma-cli-migrate-reset/SKILL.md
prisma migrate reset
npx skillsauth add prisma/cursor-plugin prisma-cli-migrate-resetInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Resets your database and re-applies all migrations.
prisma migrate reset [options]
prisma/migrations/Warning: All data will be lost.
| Option | Description |
|--------|-------------|
| --force / -f | Skip confirmation prompt |
| --schema | Path to schema file |
| --config | Custom path to your Prisma config file |
prisma migrate reset
Prompts for confirmation in interactive terminals.
prisma migrate reset --force
prisma migrate reset --schema=./custom/schema.prisma
migrate reset automatically ran prisma generate.prisma generate separately if you want to update the client, though reset focuses on the database state.Configure seed script in prisma.config.ts to run it automatically after reset:
export default defineConfig({
migrations: {
seed: 'tsx prisma/seed.ts',
},
})
databases
Schema Changes. Reference when using this Prisma feature.
tools
Removed Features. Reference when using this Prisma feature.
tools
Prisma Config. Reference when using this Prisma feature.
tools
ESM Support. Reference when using this Prisma feature.