NODEJS Contents

Migration Strategy

Migrations manage schema evolution safely across environments; never change production schemas manually.

On this page

Why Migrations Matter

Database schemas evolve. Manual changes create drift between environments and break deployments.

Migration Workflow

  • Create migration script
  • Review and test locally
  • Apply in staging
  • Deploy to production

Production Rule

Always make migrations reversible when possible and coordinate schema changes with application deployment.