Open source video conferencing app powered by LiveKit. Built with Django and React.
⚡️(backend) add UPPER(email) index for case-insensitive user lookups
lebaudantoined930fa1ba619
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5e6b54c7..b637b12f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,10 @@ and this project adheres to## [Unreleased]+### Added++- ⚡️(backend) add UPPER(email) index for case-insensitive user lookups+## [1.35.0] - 2026-10-13### Addeddiff --git a/src/backend/core/migrations/0027_user_email_upper_idx.py b/src/backend/core/migrations/0027_user_email_upper_idx.pynew file mode 100644index 00000000..a17416de--- /dev/null+++ b/src/backend/core/migrations/0027_user_email_upper_idx.py@@ -0,0 +1,23 @@+# Generated by Django 5.2.14 on 2026-10-07 18:45++from django.contrib.postgres.operations import AddIndexConcurrently+from django.db import migrations, models+from django.db.models.functions import Upper+++class Migration(migrations.Migration):+ atomic = False++ dependencies = [+ ('core', '0026_alter_application_scopes'),+ ]++ operations = [+ AddIndexConcurrently(+ model_name="user",+ index=models.Index(+ Upper("email"),+ name="user_email_upper_idx",+ ),+ ),+ ]diff --git a/src/backend/core/models.py b/src/backend/core/models.pyindex bcf6092b..0cd48d8b 100644--- a/src/backend/core/models.py+++ b/src/backend/core/models.py@@ -246,6 +246,9 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):name="unique_email_when_sub_is_null",)]+ indexes = [+ models.Index(models.functions.Upper("email"), name="user_email_upper_idx"),+ ]def __str__(self):return self.email or self.admin_email or str(self.id)