Prisma Migrate
Does not apply for MongoDB
Instead of migrate dev
and related commands, use db push
for MongoDB.
Prisma Migrate is an declarative database schema migration tool that enables you to:
- Keep your database schema in sync with your Prisma schema as it evolves and
- Maintain existing data in your database
Prisma Migrate generates a history of .sql
migration files, and plays a role in both development and deployment.
If you are prototyping, consider using the db push
command - see Schema prototyping with db push
for examples.
See the Prisma Migrate reference for detailed information about the Prisma Migrate CLI commands.