Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整instance_account唯一索引 #2179

Merged
merged 2 commits into from
Jun 18, 2023
Merged

调整instance_account唯一索引 #2179

merged 2 commits into from
Jun 18, 2023

Conversation

nick2wang
Copy link
Collaborator

#2108 新增的mongo账号管理添加的db_name字段没有加入唯一索引,导致同一mongo实例不同数据库录入相同名称账号时报错失败

MySQLdb._exceptions.IntegrityError: (1062, "Duplicate entry '11-hzpTW5c0st1JwqCNx3BFAA==-' for key 'instance_account_instance_id_user_host_514c1ac6_uniq'")

调整instance_account唯一索引
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (4bca447) 75.24% compared to head (5ea83e9) 75.24%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2179   +/-   ##
=======================================
  Coverage   75.24%   75.24%           
=======================================
  Files         105      105           
  Lines       15182    15182           
=======================================
  Hits        11424    11424           
  Misses       3758     3758           
Impacted Files Coverage Δ
sql/models.py 96.57% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hhyo hhyo merged commit 07ef383 into hhyo:master Jun 18, 2023
@nick2wang nick2wang deleted the mongo-fix branch May 11, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants