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: Add missing migration to drop deprecated alert tables #19933

Conversation

john-bodley
Copy link
Member

SUMMARY

I was misguided when spelunking through our database to try to find the various tables which house the alerting logic. It seems that the alerts, alert_logs, and alert_owners tables are obsolete having been replaced with various report_* tables. This PR simply drops the unused tables.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@john-bodley john-bodley force-pushed the john-bodley--remove-obsolete-alert-tables branch from 6686e24 to efbaa34 Compare May 3, 2022 04:02
Copy link
Member

@dpgaspar dpgaspar left a comment

Choose a reason for hiding this comment

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

@john-bodley seems like CI is failling, maybe just do a "normal" drop table?

]

def upgrade():
for module in reversed(module):
Copy link
Member

Choose a reason for hiding this comment

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

Can we just drop tables? This looks a little weird. Ideally migrations should not depend on other migrations directly.

@john-bodley
Copy link
Member Author

Closing as this was handled in #24629.

@john-bodley john-bodley closed this Dec 6, 2023
@john-bodley john-bodley deleted the john-bodley--remove-obsolete-alert-tables branch December 6, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants