Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Document what to do when releases need migrations.

Alex Vandiver36f92d6843dc
diff --git a/docs/subsystems/schema-migrations.md b/docs/subsystems/schema-migrations.md
index b8aee2adb95..298f4471b2c 100644
--- a/docs/subsystems/schema-migrations.md
+++ b/docs/subsystems/schema-migrations.md
@@ -42,6 +42,14 @@ migrations.
prompt unnecessarily less, but it will update the working tree for
you automatically (you still need to do all the `git add`
commands, etc.).
+- **Release branches**: When a release branch needs a migration, but
+ `main` already has new migrations, the migration graph must fork.
+ The migration should be named and numbered in `main` to follow in
+ usual sequence, but its dependency should be set to the last
+ migration that exists on the release branch. This should be
+ followed, on `main`, by a migration which merges the two resulting
+ tips; you can make such a merge with `manage.py makemigrations
+ --merge`.
- **Large tables**: For our very largest tables (e.g. Message and
UserMessage), we often need to take precautions when adding columns
to the table, performing data backfills, or building indexes. We