Skip to content

Commit

Permalink
Rename index
Browse files Browse the repository at this point in the history
  • Loading branch information
varun kumar committed Aug 25, 2023
1 parent d2cbd60 commit 98951b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Migration(migrations.Migration):
migrations.AddIndex(
model_name="emailaddress",
index=models.Index(
django.db.models.functions.text.Upper("email"), name="idx_upper_email"
django.db.models.functions.text.Upper("email"), name="account_emailaddress_upper_email"
),
),
]
2 changes: 1 addition & 1 deletion allauth/account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Meta:
condition=Q(verified=True),
)
]
indexes = [Index(Upper("email"), name="idx_upper_email")]
indexes = [Index(Upper("email"), name="account_emailaddress_upper_email")]

def __str__(self):
return self.email
Expand Down

0 comments on commit 98951b4

Please sign in to comment.