-
Notifications
You must be signed in to change notification settings - Fork 280
fix: Fix v8.3.0 ETAC Table Rename BED-7077 #2210
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
Conversation
WalkthroughReplaces an unconditional rename in v8.3.0 with a guarded DO block that renames only if the source exists and the target does not, and adds a defensive conditional drop of Changes
Sequence Diagram(s)(Skipped — changes are localized SQL migration adjustments with no multi-component control flow.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This simply replaces the existing ETAC table rename in the v8.3.0 migration with a much more idempotent alternative.
An error was occurring if the user's database ended up in a weird state where the previous rename occurred, but the original table still existed.
Motivation and Context
Resolves: BED-7077
Why is this change required? What problem does it solve?
How Has This Been Tested?
I ran all the migrations, then created a table called
environment_access_control(the old table name)I then deleted the migrations back to v8.2.0 in order for the v8.3.0 migration to run at the next startup
I then started up the app and the migration successfully completed
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.