Prisma migrate consolidate/squash migrations during development

2021/09/25 に公開
視聴回数 770
0
0
In this follow-up video from the last one, I try consolidating/squashing, multiple small migrations into one, without loosing data.
Prisma does not have squash feature as of yet, but this work around allows you to consolidate your temporary migrations into one before pushing it to production.
You will require a backup of your initial data to be able to keep them after consolidating the migrations.