mozilla-it / ctms-api

Mozilla Public License 2.0
7 stars 1 forks source link

Document database migrations and deployment #98

Open jwhitlock opened 3 years ago

jwhitlock commented 3 years ago

For deploys, the database migrations are executed before updating the web services. This means that Tuesday's code (version N-1) needs to run with Wednesday's migrations (version N). This requires some developer and reviewer discipline, such as:

It would be good to add this advice to the development guides, and maybe the PR template.

┆Issue is synchronized with this Jira Task

jwhitlock commented 3 years ago

Long operations, like adding indexes, block requests. We should document some of the long operations we've seen during development, and advise on downtime procedures.