Skip to content

Commit ce57b3b

Browse files
committed
Follow the previous index name pattern
1 parent 6e07ee1 commit ce57b3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/activities/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (a *Action) TableIndices() []*schemas.Index {
172172
cuIndex := schemas.NewIndex("c_u", schemas.IndexType)
173173
cuIndex.AddColumn("user_id", "is_deleted")
174174

175-
actUserUserIndex := schemas.NewIndex("au_u_c_u_d", schemas.IndexType)
175+
actUserUserIndex := schemas.NewIndex("au_c_u", schemas.IndexType)
176176
actUserUserIndex.AddColumn("act_user_id", "created_unix", "user_id")
177177

178178
indices := []*schemas.Index{actUserIndex, repoIndex, cudIndex, cuIndex, actUserUserIndex}

models/migrations/v1_24/v315.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (a *improveActionTableIndicesAction) TableIndices() []*schemas.Index {
4343
cuIndex := schemas.NewIndex("c_u", schemas.IndexType)
4444
cuIndex.AddColumn("user_id", "is_deleted")
4545

46-
actUserUserIndex := schemas.NewIndex("au_u_c_u_d", schemas.IndexType)
46+
actUserUserIndex := schemas.NewIndex("au_c_u", schemas.IndexType)
4747
actUserUserIndex.AddColumn("act_user_id", "created_unix", "user_id")
4848

4949
indices := []*schemas.Index{actUserIndex, repoIndex, cudIndex, cuIndex, actUserUserIndex}

0 commit comments

Comments
 (0)