Use maintenance mode for migrations

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the databases category.

Last Updated: 2024-04-24

Changing a DB schema and upgrading a database typically requires that the application be put into maintenance mode to avoid inconsistency. Be very careful to independently put the background workers and cron jobs into maintenance too.