Overview - Prisma migrations
What is it?
Prisma migrations are a way to safely change your database structure over time. They help you update tables, columns, and relationships without losing data. Using migrations, you write changes in a file and apply them step-by-step to your database. This keeps your database and code in sync as your app grows.
Why it matters
Without migrations, changing a database can be risky and confusing. You might lose data or break your app if changes are done manually or inconsistently. Migrations automate and track these changes, making development smoother and safer. They let teams work together without overwriting each other's database updates.
Where it fits
Before learning Prisma migrations, you should understand basic databases and how Prisma models map to tables. After migrations, you can explore advanced database management, deployment automation, and continuous integration with database changes.