P
Prisma4mo ago
Tim

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
Nurul
Nurul4mo ago
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
Tim
Tim4mo ago
thank you for responding. But what about the migration_lock.toml how do you regenerate it?
Nurul
Nurul4mo ago
It will be automatically created when you create a new migration. You don't need to create it manually.
Tim
Tim4mo ago
oh ok.
Want results from more Discord servers?
Add your server