From dbf9c56b65bfe28dfced34aed1a020ca1507c282 Mon Sep 17 00:00:00 2001 From: Antoine LAURENT Date: Mon, 13 Jan 2025 23:34:01 +0100 Subject: [PATCH] Fix index name --- itou/users/migrations/0022_user_full_name_search_idx.py | 2 +- itou/users/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/itou/users/migrations/0022_user_full_name_search_idx.py b/itou/users/migrations/0022_user_full_name_search_idx.py index 67a8ab09bf..7f406e8449 100644 --- a/itou/users/migrations/0022_user_full_name_search_idx.py +++ b/itou/users/migrations/0022_user_full_name_search_idx.py @@ -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", ), ), ] diff --git a/itou/users/models.py b/itou/users/models.py index 8bf7a3dc70..0346094b36 100644 --- a/itou/users/models.py +++ b/itou/users/models.py @@ -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(