Skip to content

Commit

Permalink
Fix index name
Browse files Browse the repository at this point in the history
  • Loading branch information
tonial committed Jan 13, 2025
1 parent 0871956 commit dbf9c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion itou/users/migrations/0022_user_full_name_search_idx.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
model_name="user",
index=django.contrib.postgres.indexes.GinIndex(
models.F("full_name_search_vector"),
name="full_name_search_idx",
name="users_user_full_name_search_vector_idx",
),
),
]
2 changes: 1 addition & 1 deletion itou/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class Meta(AbstractUser.Meta):
OpClass(Upper("email"), name="text_pattern_ops"),
name="users_user_email_upper",
),
GinIndex("full_name_search_vector", name="full_name_search_idx"),
GinIndex("full_name_search_vector", name="users_user_full_name_search_idx"),
]
constraints = [
models.CheckConstraint(
Expand Down

0 comments on commit dbf9c56

Please sign in to comment.