zulip/scripts/lib
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
..
third install-yarn: Fix buggy status check for the signature. 2018-04-09 15:09:37 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
cd_exec scripts: Add cd_exec library helper. 2017-07-21 17:28:20 -07:00
certbot-maybe-renew install: Add a couple Docker-specific options to the certbot scripts. 2018-07-23 17:45:59 -07:00
check-upstart install: Add clear error message if upstart is installed on Xenial. 2016-11-29 19:16:26 -08:00
clean_emoji_cache.py clean-unused-caches: Optimize performance. 2018-06-18 07:31:33 -07:00
clean_node_cache.py clean-unused-caches: Optimize performance. 2018-06-18 07:31:33 -07:00
clean_venv_cache.py clean-unused-caches: Optimize performance. 2018-06-18 07:31:33 -07:00
clean-unused-caches clean-unused-caches: Optimize performance. 2018-06-18 07:31:33 -07:00
create-production-venv setup_venv: Clean up VENV_DEPENDENCIES using parsed lsb_release. 2018-05-29 10:57:36 -07:00
create-thumbor-venv create-thumbor-venv: Specify python 2.7 use for production thumbor venv. 2018-02-21 01:00:40 +05:30
create-zulip-admin Add script to create admin from CLI. 2017-09-27 20:15:41 -07:00
docker-functions.sh install: Rename generate-self-signed-cert. 2018-01-23 18:08:52 -08:00
email-mirror-postfix email-mirror-postfix: Replace optparse with argparse. 2017-11-21 21:34:38 -08:00
hash_reqs.py scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
install locale: Set LANG/LANGUAGE to match LC_ALL. 2018-07-23 23:01:10 -07:00
install-node scripts: Replace node-wrapper with a symlink. 2018-07-30 11:48:10 -07:00
node_cache.py scripts: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
process-mobile-i18n Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
pythonrc.py scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
queue_workers.py scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
setup_path_on_import.py linter: Add lint rule banning 'import os.path' 2017-09-22 10:32:21 -07:00
setup_venv.py thumbor: Fix missing virtualenv-clone package in dependencies. 2018-07-30 11:55:16 -07:00
setup-apt-repo scripts: Remove obsolete zesty configuration. 2018-05-05 11:41:57 -07:00
unpack-zulip scripts: Remove import print_function. 2017-09-29 15:43:30 -07:00
upgrade-zulip refactor: Replace mkdir_p functions with Python 3 builtin. 2017-10-25 11:06:11 -07:00
upgrade-zulip-stage-2 models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
zulip_tools.py scripts/lib/zulip_tools.py: Avoid shelling out for touch. 2018-07-25 16:54:46 -07:00