Hi. What is the advice or consensus regarding sour...
# orm-help
m
Hi. What is the advice or consensus regarding source code management of the Prisma Migration files? Should I include them or exclude them in my Git configuration?
k
They should be included always, to track the state of your database
plus one +1 3
that is what I think of course
r
Also if you want to perform migrations in your build pipeline in your production database, you will need the migrations folder
m
I could also just run a prisma migrate in prod, using the state of the schema.prisma models, but I guess that would be dangerous as at least the migration script developed in dev would have been run and tested.
a
The files help understand how migrations are going to be carried out and can be reviewed. It’s best practice to create these files in development only and then apply these migrations in all other environments, including the colleagues’ development environments, too.