Prisma ORM

Lesson 04 · 10 min

Migrations

Every schema change is an SQL file in history. Development and production follow one path.

10 minLesson 4 of 9Practice includedAsk AI on any point

prisma migrate dev --name add_phone compares the schema with the database, writes an SQL file into prisma/migrations, and applies it locally. On the server, prisma migrate deploy applies every pending file in order. Migrations are committed to Git with the code.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.