zulip/scripts
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
..
lib models: Add is_private flag to UserMessage and add index for it. 2018-07-30 15:43:55 -07:00
nagios scripts/nagios/check-rabbitmq-consumers: Avoid shelling out for mv. 2018-07-19 10:43:37 -07:00
setup scripts: Replace node-wrapper with a symlink. 2018-07-30 11:48:10 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
get-django-setting Remove from __future__ import absolute_import. 2017-10-17 22:59:42 -07:00
purge-old-deployments scripts: Change use of typing.Text to str. 2018-05-14 05:16:22 +05:30
README.md docs: Update links from codebase to point to ReadTheDocs. 2017-11-16 10:53:49 -08:00
restart-server thumbor: Add production installer/puppet support. 2018-07-12 20:37:34 +05:30
upgrade-zulip Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
upgrade-zulip-from-git refactor: Remove six.moves.configparser import. 2017-11-07 10:51:44 -08:00
zulip-puppet-apply scripts/zulip-puppet-apply: Avoid shelling out for touch. 2018-07-25 16:54:46 -07:00

This directory contains scripts that:

  • Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.

  • Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in tools/).

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.