zulip/docs/production
Shubham Padia bf6dc4472b models: Add is_private flag to UserMessage and add index for it.
The is_private flag is intended to be set if recipient type is
'private'(1) or 'huddle'(3), otherwise i.e if it is 'stream'(2), it
should be unset.

This commit adds a database index for the is_private flag (which we'll
need to use it). That index is used to reset the flag if it was
already set. The already set flags were due to a previous removal of
is_me_message flag for which the values were not cleared out.

For now, the is_private flag is always 0 since the really hard part of
this migration is clearing the unspecified previous state; future
commits will fully implement it actually doing something.

History: Migration rewritten significantly by tabbott to ensure it
runs in only 3 minutes on chat.zulip.org.  A key detail in making that
work was to ensure that we use the new index for the queries to find
rows to update (which currently requires the `order_by` and `limit`
clauses).
2018-07-30 15:43:55 -07:00
..
authentication-methods.md docs/production: Revise doc on authentication methods. 2018-01-18 17:45:03 -08:00
deployment.md docs: Add production documentation on deployment options. 2018-05-22 11:31:48 -07:00
email.md docs: Remove use of multi-line 'su zulip' in docs. 2018-07-30 13:38:55 -07:00
expensive-migrations.md models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
export-and-import.md docs: Move server import and export from /help to readthedocs. 2018-07-27 10:37:50 -07:00
index.rst docs: Move server import and export from /help to readthedocs. 2018-07-27 10:37:50 -07:00
install-existing-server.md docs: Document production support for Debian Stretch and Ubuntu Bionic. 2018-06-05 08:09:29 -07:00
install.md docs: Document production support for Debian Stretch and Ubuntu Bionic. 2018-06-05 08:09:29 -07:00
maintain-secure-upgrade.md docs: Point Docker users to the Docker upgrade docs. 2018-07-01 06:58:44 -07:00
mobile-push-notifications.md docs: Fix typos in mobile-push-notifications. 2018-06-30 13:48:01 -07:00
multiple-organizations.md auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
overview.md docs: Document production support for Debian Stretch and Ubuntu Bionic. 2018-06-05 08:09:29 -07:00
password-strength.md docs: Use `orphan` to directly exclude pages from toctree. 2018-01-24 14:37:17 -08:00
postgres.md docs: Add production documentation on deployment options. 2018-05-22 11:31:48 -07:00
requirements.md docs: Document production support for Debian Stretch and Ubuntu Bionic. 2018-06-05 08:09:29 -07:00
security-model.md Replace all user-facing references to "invite-only" with "private". 2018-06-12 13:37:45 -04:00
settings.md docs: Rename customize.html to settings.html. 2018-02-19 09:55:49 -08:00
ssl-certificates.md prod docs: Call out more the need for a chained cert bundle. 2018-04-16 11:34:23 -07:00
troubleshooting.md docs: Rename customize.html to settings.html. 2018-02-19 09:55:49 -08:00
upload-backends.md docs: Clarify setup documentation for S3 backend. 2018-05-17 07:20:07 -07:00