Loading
Current section: Data Migrations 3 exercises
Problem

Creating Migration Files for Database Management with Prisma

Transcript

00:00 Let's go ahead and make our migration file. So we want to be able to spin up a new database every single time we deploy to a new environment or whatever. And then as we make changes over time, we want to be able to apply those changes to our existing databases so that we can create new tables or rename

00:19 properties or whatever we're going to be doing. So in this exercise, you're going to be creating your migration file that will end up in the Prisma folder right here. So once you've done that, you should have a Prisma folder and you should be able to easily spin up a new database using the migrate command and it'll be awesome. So have a good time with that.

00:37 We'll see you on the other side.