zulip/zephyr/migrations
Zev Benjamin fca8f84c14 [schema] Return highlighted subject and content from get_old_messages() when doing a search
We HTML-escape the subject in Postgres to avoid a server round-trip.
Unlike the rendered_content, which is already escaped and cached on
zephyr_message, we normally escape subjects client-side.  Escaping in
Django would require fetching the messages that match the query,
escaping the subjects, and then making a second query to Postgres to
insert the markup.  We could instead fetch the messages with subjects
marked up using non-HTML (some unique string) that is later converted
into the correct markup either in Django or client-side, but then the
escaping problem would just be with some random string instead of
HTML.  Since the function is pretty simple, doing the escaping in
Postgres itself is the least painful option.

(imported from commit 004931d8e496697c18650aee97b1a74c55a04cb2)
2013-04-30 11:40:27 -04:00
..
0001_initial.py Include autogenerated initial migrations for South. 2013-01-08 18:14:39 -05:00
0002_auto__add_field_preregistrationuser_referred_by__add_field_preregistra.py [south] Migration for PreregistrationUser 2013-01-14 10:25:26 -05:00
0003_auto__add_field_stream_invite_only.py [schema][manual] Add schema invite_only flag for streams 2013-01-24 17:34:21 -05:00
0004_add_postgres_zephyr_message_full_text_idx.py [manual] Add South migration for creating a Postgres full text index of messages 2013-01-31 15:57:45 -05:00
0005_auto__add_field_subscription_in_home_view.py [manual] South migration for Subscriptions model change. 2013-02-05 15:34:35 -05:00
0006_add_zephyr_message_search_tsvector.py [manual] Add a ts_vector cache column on zephyr_message along with the appropriate trigger and index 2013-02-06 12:09:49 -05:00
0007_populate_zephyr_message_search_tsvector.py [manual] Add a ts_vector cache column on zephyr_message along with the appropriate trigger and index 2013-02-06 12:09:49 -05:00
0008_index_zephyr_message_search_tsvector.py [manual] Add a ts_vector cache column on zephyr_message along with the appropriate trigger and index 2013-02-06 12:09:49 -05:00
0009_auto__add_field_realm_restricted_to_domain.py [manual][schema] Add a restricted_to_domain bit on realms. 2013-02-08 13:16:35 -05:00
0010_auto__add_userpresence__add_unique_userpresence_user_profile_client.py [manual][schema] Add an API for user presence (idle) information 2013-02-11 18:05:57 -05:00
0011_auto__add_field_userprofile_enter_sends.py [south] Add enter-sends field to UserProfile model. 2013-02-27 17:25:15 -05:00
0012_auto__add_field_usermessage_flags.py Fix 0012 migration to work with sqlite 2013-03-13 11:52:06 -04:00
0013_usermessage_unreadcount.py Lower thresholds for migration speed 2013-03-13 11:52:04 -04:00
0014_auto__add_field_message_rendered_content__add_field_message_rendered_c.py [south] Add rendered_content columns. 2013-03-19 08:09:26 -04:00
0015_auto__add_field_userprofile_password__add_field_userprofile_last_login.py [schema] Add South migration for extending UserProfile to subsume User. 2013-04-01 14:34:25 -04:00
0016_auto__del_field_userprofile_user.py [schema] Remove User model. 2013-04-02 13:24:33 -04:00
0017_auto__add_field_subscription_color.py Update subscription color migration to run on sqlite. 2013-04-04 15:25:43 -04:00
0018_auto__add_unique_userprofile_email.py [South] [schema] Add an index on Userprofile.email. 2013-04-04 15:45:42 -04:00
0019_auto__add_field_userprofile_tutorial_status.py [schema][manual] Automatically subscribe users to default streams only after tutorial 2013-04-04 17:11:39 -04:00
0020_set_tutorial_finished.py [schema][manual] Automatically subscribe users to default streams only after tutorial 2013-04-04 17:11:39 -04:00
0021_auto__add_field_subscription_notifications.py [South] Migration to add notifications to Subscription table 2013-04-10 16:11:27 -04:00
0022_create_humbug_search_config.py [schema] [manual] Create a Postgres text search configuration for use with Humbug 2013-04-27 20:06:26 -04:00
0023_rebuild_search_tsvector.py [schema] [manual] Rebuild search_tsvector and change its update trigger 2013-04-29 13:58:20 -04:00
0024_create_escape_html_function.py [schema] Return highlighted subject and content from get_old_messages() when doing a search 2013-04-30 11:40:27 -04:00
__init__.py Include autogenerated initial migrations for South. 2013-01-08 18:14:39 -05:00