Help: squashing migrations
I'm trying to squash my migrations into one migrations and I was wondering if we are surpose to remove all contents in the
.prisma/migrations
folder including the migration_lock.toml
?4 Replies
Hey Tim,
Yes, you should delete all the contents of /prisma/migrations folder when you are squashing the migrations
https://www.prisma.io/docs/orm/prisma-migrate/workflows/squashing-migrations#how-to-create-a-clean-history-in-a-production-environment
Squashing migrations | Prisma Documentation
How to squash multiple migration files into a single migration
thank you for responding. But what about the
migration_lock.toml
how do you regenerate it?It will be automatically created when you create a new migration. You don't need to create it manually.
oh ok.