Databases · Junior · Question 50 of 75
What is a database migration?
- 1Moving the database to a new server
- 2Converting MySQL to PostgreSQL
- ✓Correct answer: A versioned script that changes the schema (or data) and is applied in order in every environment
Explanation
Migrations live in git next to the code. Tools like Prisma Migrate, Flyway or Knex track which ones have been applied.