Setting the file. One moment.
Subchapter 1.16
references/migrate-reset.mdMarkdown2 KBView on GitHub
prisma migrate reset [options]prisma/migrations/Warning: All data will be lost.
When Prisma detects an AI agent, this command is blocked until the user gives explicit consent. Follow agent-safety.md; --force skips the ordinary prompt but does not constitute user consent for an agent.
| Option | Description |
|---|---|
--force / -f | Skip confirmation prompt |
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
prisma migrate resetPrompts for confirmation in interactive terminals.
prisma migrate reset --forceprisma migrate reset --schema=./custom/schema.prismaRun prisma generate and prisma db seed explicitly when you need refreshed client output or seed data after a reset.
Configure the seed script in prisma.config.ts, then run it explicitly after reset:
export default defineConfig({
migrations: {
seed: 'tsx prisma/seed.ts',
},
})Typical workflow:
prisma migrate reset --force
prisma generate
prisma db seed