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

fix: handle isexist error for IsDirectDeal column in migration #1761

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

LexLuthr
Copy link
Collaborator

@LexLuthr LexLuthr commented Oct 18, 2023

Fixes #1754

  • Test in mainnet

@LexLuthr LexLuthr requested a review from nonsense October 18, 2023 11:54
Comment on lines 18 to 19
errorStr := strings.Split(err.Error(), ";")
if strings.Compare("code=2200", errorStr[0]) == 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd relax this directly to strings.Contains

Suggested change
errorStr := strings.Split(err.Error(), ";")
if strings.Compare("code=2200", errorStr[0]) == 0 {
if strings.Contains(err.Error(), "code=2200") {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@nonsense nonsense merged commit 6d46522 into main Oct 23, 2023
@nonsense nonsense deleted the fix/cql-migration branch October 23, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

creating new column IsDirectDeal: Duplicate Column
2 participants