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: Swap upgrade-postgresql steps with rebuilding the venv.

Alex Vandiver5e5478307a80
diff --git a/docs/production/upgrade.md b/docs/production/upgrade.md
index e3ea04c6e08..f8a015d80b4 100644
--- a/docs/production/upgrade.md
+++ b/docs/production/upgrade.md
@@ -329,13 +329,7 @@ instructions for other supported platforms.
currently installed version. But it's not important; the next
step will re-install Zulip's configuration in any case.
-4. As root, upgrade the database to the latest version of PostgreSQL:
-
- ```bash
- /home/zulip/deployments/current/scripts/setup/upgrade-postgresql
- ```
-
-5. Next, we need to reinstall the current version of Zulip, which
+4. Next, we need to reinstall the current version of Zulip, which
among other things will recompile Zulip's Python module
dependencies for your new version of Python and rewrite Zulip's
full-text search indexes to work with the upgraded dictionary
@@ -351,6 +345,12 @@ instructions for other supported platforms.
able to navigate to its URL and confirm everything is working
correctly.
+5. As root, upgrade the database to the latest version of PostgreSQL:
+
+ ```bash
+ /home/zulip/deployments/current/scripts/setup/upgrade-postgresql
+ ```
+
### Upgrading from Ubuntu 18.04 Bionic to 20.04 Focal
1. Upgrade your server to the latest Zulip `3.x` or `4.x` release (at
@@ -382,13 +382,7 @@ instructions for other supported platforms.
currently installed version. But it's not important; the next
step will re-install Zulip's configuration in any case.
-4. As root, upgrade the database to the latest version of PostgreSQL:
-
- ```bash
- /home/zulip/deployments/current/scripts/setup/upgrade-postgresql
- ```
-
-5. Next, we need to reinstall the current version of Zulip, which
+4. Next, we need to reinstall the current version of Zulip, which
among other things will recompile Zulip's Python module
dependencies for your new version of Python and rewrite Zulip's
full-text search indexes to work with the upgraded dictionary
@@ -404,6 +398,12 @@ instructions for other supported platforms.
able to navigate to its URL and confirm everything is working
correctly.
+5. As root, upgrade the database to the latest version of PostgreSQL:
+
+ ```bash
+ /home/zulip/deployments/current/scripts/setup/upgrade-postgresql
+ ```
+
6. Finally, Ubuntu 20.04 has a different version of the low-level
glibc library, which affects how PostgreSQL orders text data (known
as "collations"); this corrupts database indexes that rely on