Prisma migrate consolidate/squash migrations during development

Channel:
Subscribers:
286
Published on ● Video Link: https://www.youtube.com/watch?v=CO0cCNUvKS8



Duration: 12:28
806 views
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.







Tags:
programming
database
prisma
orm
migrations