zulip/analytics/migrations
Alex Vandiver a782aae78e analytics: Regenerate partial indexes due to Django bug.
Due to a bug[^1] in Django 4.2, fixed in 4.2.6, queries using
`__isnull` added an unnecessary cast.  This cast was _also_ used in
`WHERE` clauses for partial indexes.  This means that partial indexes
created before Zulip was using Django 4.2 (i.e. before Zulip Server
7.0 or 2c20028aa4) will not be used when the server is using Django
4.2.0 through 4.2.5 -- and, conversely, that indexes created while
Zulip had those versions of Django (i.e. Zulip Server 7.0 through 7.4
or 7807bff526) will not be used later.

We re-create the indexes, to ensure that users that installed Zulip
after Zulip Server 7.0 / 2c20028aa4 and before Zulip Server 7.5 /
7807bff526 have indexes which can be used by current Django.  This
is useless work for some installations, but most analytics tables are
not large enough for this to take significant time.

[^1]: https://code.djangoproject.com/ticket/34840
2023-11-16 13:53:04 -08:00
..
0001_initial.py
0002_remove_huddlecount.py
0003_fillstate.py
0004_add_subgroup.py
0005_alter_field_size.py
0006_add_subgroup_to_unique_constraints.py
0007_remove_interval.py
0008_add_count_indexes.py models: Convert deprecated index_together option to indexes. 2023-07-12 07:12:43 -07:00
0009_remove_messages_to_stream_stat.py migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
0010_clear_messages_sent_values.py migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
0011_clear_analytics_tables.py migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
0012_add_on_delete.py
0013_remove_anomaly.py
0014_remove_fillstate_last_modified.py
0015_clear_duplicate_counts.py migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
0016_unique_constraint_when_subgroup_null.py
0017_regenerate_partial_indexes.py analytics: Regenerate partial indexes due to Django bug. 2023-11-16 13:53:04 -08:00
__init__.py