mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
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). |
||
|---|---|---|
| .. | ||
| third | ||
| __init__.py | ||
| cd_exec | ||
| certbot-maybe-renew | ||
| check-upstart | ||
| clean_emoji_cache.py | ||
| clean_node_cache.py | ||
| clean_venv_cache.py | ||
| clean-unused-caches | ||
| create-production-venv | ||
| create-thumbor-venv | ||
| create-zulip-admin | ||
| docker-functions.sh | ||
| email-mirror-postfix | ||
| hash_reqs.py | ||
| install | ||
| install-node | ||
| node_cache.py | ||
| process-mobile-i18n | ||
| pythonrc.py | ||
| queue_workers.py | ||
| setup_path_on_import.py | ||
| setup_venv.py | ||
| setup-apt-repo | ||
| unpack-zulip | ||
| upgrade-zulip | ||
| upgrade-zulip-stage-2 | ||
| zulip_tools.py | ||