Skip to content
代码片段 群组 项目
未验证 提交 692b65dc 编辑于 作者: Moaz Khalifa's avatar Moaz Khalifa 提交者: GitLab
浏览文件

Replace DB unique index with model validator

The DB unique index in packages_nuget_symbols table cannot be aware of the package's status. However, we need to only validate the uniqueness if the  package is installable. So we decided to remove the DB index and do the uniqueness validation on the application level to have access to the package's status. We can tolerate a few duplicates in the table if something escaped the model validation due to some race conditional, which isn't likely to happen.

Changelog: fixed
上级 f33801b7
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册