zulip/docs
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
..
_static install docs: Tighten "create organization" step. 2018-03-06 19:43:02 -08:00
contributing docs: Add basic documentation for adding mypy stubs. 2018-07-26 15:06:22 -07:00
development setup-advanced: Remove broken links for old tsearch_extras packages. 2018-07-11 21:35:23 +05:30
git Docs: Added "connect the zulip upstream repo" to more places. 2018-03-18 23:02:09 -07:00
images docs: change the dev login image. 2018-02-28 13:50:13 -08:00
overview models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
production models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
subsystems docs: Clean up the new thumbnailing docs. 2018-07-30 13:46:32 -07:00
testing stylelint: Start using stylelint to lint our css. 2018-07-25 15:03:35 -07:00
translating documentation: Migrate all CZO stream links to new stream URL style 2018-05-24 15:15:34 -07:00
tutorials docs: Attempt to clarify the REST API writing docs. 2018-06-04 16:01:07 -07:00
.gitignore gitignore: Anchor patterns that should be anchored. 2017-07-19 14:03:49 -07:00
Makefile docs: Use parallelism when building docs. 2017-11-14 10:41:38 -08:00
README.md docs: Add README.md to zulip/docs to prevent reading on GitHub. 2018-04-24 10:50:39 -07:00
THIRDPARTY jquery-form: Remove jquery-form plugin dependency. 2018-05-29 15:44:40 -07:00
code-of-conduct.md repository: Add CODE_OF_CONDUCT.md. 2017-06-14 18:43:08 -07:00
conf.py version: Update for Zulip Server 1.8.1 release. 2018-05-07 16:01:41 -07:00
index.rst docs: Split 'git-guide.md`. 2017-11-23 16:04:18 -08:00
requirements.readthedocs.txt requirements: Rename requirements files. 2017-11-21 02:38:26 +05:30

README.md

Zulip markdown documentation hosted elsewhere

The markdown files in this directory ( /zulip/docs ) are not intended to be read on GitHub. Instead, visit our ReadTheDocs to read the Zulip documentation.