Docker and CI/CD · Middle · Question 53 of 75

Why should database migrations stay backward compatible during a deploy?

Explanation

In a rolling or blue-green deploy, the old code still runs against the new schema. Expand-and-contract: add first, migrate data, remove later.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 53

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz