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(migrate): upgrade to 4.3.3 will fail if it exists custom environments before #4186

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

MarkPotato777
Copy link
Collaborator

What type of PR is this?

type-bug

What this PR does / why we need it:

It doesn't distinguish between updating and creating scenarios when migrating the SQL rules.
We should only handle the creating scenarios, and ignore the updating scenarios. If not (as the bug's root cause), it will cause a unique key conflict.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:


@MarkPotato777 MarkPotato777 added the type-bug Something isn't working label Jan 20, 2025
@MarkPotato777 MarkPotato777 added this to the ODC4.3.3-bp1 milestone Jan 20, 2025
@MarkPotato777 MarkPotato777 self-assigned this Jan 20, 2025
@MarkPotato777 MarkPotato777 changed the title fix(migrate): upgrade to 4.3.3 will fail if it exists custom environments before WIP: fix(migrate): upgrade to 4.3.3 will fail if it exists custom environments before Jan 21, 2025
@MarkPotato777 MarkPotato777 changed the title WIP: fix(migrate): upgrade to 4.3.3 will fail if it exists custom environments before fix(migrate): upgrade to 4.3.3 will fail if it exists custom environments before Jan 21, 2025
Copy link
Collaborator

@LioRoger LioRoger left a comment

Choose a reason for hiding this comment

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

lgtm

@MarkPotato777 MarkPotato777 merged commit 9836921 into dev/4.3.3 Jan 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Something isn't working
Projects
Status: Developed
Development

Successfully merging this pull request may close these issues.

2 participants