mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
This fixes a performance issue joining a server with a large number of users. Thanks to @dbiollo for the suggestion!
17 lines
471 B
Python
17 lines
471 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('zerver', '0007_userprofile_is_bot_active_indexes'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunSQL("CREATE INDEX upper_preregistration_email_idx ON zerver_preregistrationuser ((upper(email)));",
|
|
reverse_sql="DROP INDEX upper_preregistration_email_idx;"),
|
|
]
|