question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support prisma `migrate reset` / `prisma db reset` on MongoDB

See original GitHub issue

It would be convenient for tests and local development, in concert with db seed.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmuellercommented, Feb 16, 2022

Do we see this one happening sometime in the next 6 weeks? If not, I’ll move it to After GA.

0reactions
Jolg42commented, Feb 17, 2022

Since migrate does not support MongoDB, having migrate reset doesn’t sound like an option.

A db reset or db drop command could make sense, but these don’t exist for any connector.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma Migrate limitations and known issues
In a development environment, Prisma Migrate sometimes prompts you to reset the database. Resetting drops and recreates the database, which results in data ......
Read more >
prisma migrate reset - Fig.io
Reset your database and apply all migrations, all data will be lost. ... this help message. --schema <Schema path>, Custom path to your...
Read more >
Effortless database schema migration with Prisma
In dev environments, Prisma Migrate may sometimes send a prompt to reset the database; this, unfortunately, leads to data loss in your dev ......
Read more >
Automatic Prisma migrations - PlanetScale
From a high level, Prisma's db push introspects your PlanetScale database to infer and execute the changes required to make your database schema ......
Read more >
How to migrate mongodb schema using prisma? (to create ...
Doesn't npx prisma db push command work for you? migrate dev command is not supported for MongoDB. – Nurul Sundarani. Oct 14 at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found