-
Notifications
You must be signed in to change notification settings - Fork 297
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: address django migration failing on SQLite #5308
Conversation
# NOTE: commented out due to some issues this was causing w/ SQLite: | ||
# https://github.com/grafana/oncall/issues/5306 | ||
# https://github.com/grafana/oncall/issues/5244#issuecomment-2503999986 | ||
# | ||
# linter.IgnoreMigration(), | ||
# common.migrations.remove_field.RemoveFieldDB( | ||
# model_name='resolutionnoteslackmessage', | ||
# name='_slack_channel_id', | ||
# remove_state_migration=('alerts', '0068_remove_resolutionnoteslackmessage__slack_channel_id_state'), | ||
# ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly I don't think there is any harm in commenting this out. It's really only doing a DROP COLUMN
statement.
For whatever reason, this seems to fail (only on SQLite; see #5306 for more details):
oncall_db_migration-1 | django.db.utils.OperationalError: error in index alerts_reso_ts_a9bdf7_idx after drop column: no such column: _slack_channel_id
oncall_db_migration-1 | Applying alerts.0070_remove_resolutionnoteslackmessage__slack_channel_id_db...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which issue(s) this PR closes
Fixes #5306 (and related to #5244 (comment)) + add CI check to avoid this from happening in the future
Checklist
pr:no public docs
PR label added if not required)release:
). These labels dictate how your PR willshow up in the autogenerated release notes.