Conversation
…gration - Add targetBindingSet to check for exact (provider, providerId) combinations - Add triple-layer validation: provider check, exact binding check, and database query - Add try-catch around insert to handle unique constraint violations gracefully - Improve error messages and logging for better debugging - This should prevent duplicate key violations during account merge
… merge 修复账户合并时 OAuth 绑定的唯一约束冲突问题。将 INSERT 操作改为 UPDATE 操作, 直接更新绑定记录的 userid,避免触发 unique_provider_id 约束。 - 将 OAuth 绑定迁移从 INSERT 改为 UPDATE 操作 - 简化冗余的双重验证逻辑 - 移除未使用的 and 导入 - 保留完整的错误处理和日志记录
删除冗余注释,保留关键业务逻辑说明,提高代码可读性。 - 删除显而易见的代码说明注释 - 简化章节标题,移除括号内的表名说明 - 保留重要的业务策略和约束说明 - 保持代码简洁清晰,符合最佳实践
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.