Skip to content

Commit

Permalink
不同仓库存在相同文件,预览文件报错 TencentBlueKing#2930
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Jan 16, 2025
1 parent a4bd0a5 commit dcb9167
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import java.time.LocalDateTime
*/
@Document("preview_file_cache")
@CompoundIndexes(
CompoundIndex(name = "md5_idx", def = "{'md5': 1}", unique = true, background = true),
CompoundIndex(name = "md5_project_repo_idx", def = "{'md5': 1, 'projectId': 1, 'repoName': 1}", unique = true,
background = true),
CompoundIndex(name = "created_date_idx", def = "{'createdDate': -1}", background = true)
)
data class TPreviewFileCache(
Expand Down

0 comments on commit dcb9167

Please sign in to comment.