Migrations for schema changes
📖 Scenario: You are building a simple Express app that stores user information in a database. Over time, you need to change the database schema safely without losing data. This project will guide you through creating a migration script to update the schema.
🎯 Goal: Create a migration script using Express and a migration tool to add a new column age to the users table.
📋 What You'll Learn
Create an initial users table schema
Add a configuration variable for the new column
Write a migration script to add the new column
Complete the migration setup to run the migration
💡 Why This Matters
🌍 Real World
Migrations help update database schemas safely as apps grow and change, avoiding data loss.
💼 Career
Knowing migrations is essential for backend developers to manage database changes in production environments.
Progress0 / 4 steps