-
Notifications
You must be signed in to change notification settings - Fork 298
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
chore: patch recent migration files that drop db columns #5277
Conversation
migrations.RemoveField( | ||
model_name='channelfilter', | ||
name='_slack_channel_id', | ||
), |
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.
moved to engine/apps/alerts/migrations/0067_remove_channelfilter__slack_channel_id_state.py
migrations.RemoveField( | ||
model_name='resolutionnoteslackmessage', | ||
name='_slack_channel_id', | ||
), |
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.
moved to engine/apps/alerts/migrations/0068_remove_resolutionnoteslackmessage__slack_channel_id_state.py
…afana/oncall into jorlando/patch-recent-migration-files
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.
example of when this passes:
Checking engine/apps/alerts/migrations/0066_remove_channelfilter__slack_channel_id_and_more.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0066_remove_channelfilter__slack_channel_id_and_more.py
Checking engine/apps/alerts/migrations/0067_remove_channelfilter__slack_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0067_remove_channelfilter__slack_channel_id_state.py
Checking engine/apps/alerts/migrations/0068_remove_resolutionnoteslackmessage__slack_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0068_remove_resolutionnoteslackmessage__slack_channel_id_state.py
Checking engine/apps/schedules/migrations/0020_remove_oncallschedule_channel_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/schedules/migrations/0020_remove_oncallschedule_channel_state.py
Checking engine/apps/user_management/migrations/0028_remove_organization_general_log_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/user_management/migrations/0028_remove_organization_general_log_channel_id_state.py
example of when it catches a failure:
Checking engine/apps/alerts/migrations/0066_remove_channelfilter__slack_channel_id_and_more.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0066_remove_channelfilter__slack_channel_id_and_more.py
Checking engine/apps/alerts/migrations/0067_remove_channelfilter__slack_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0067_remove_channelfilter__slack_channel_id_state.py
Checking engine/apps/alerts/migrations/0068_remove_resolutionnoteslackmessage__slack_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/alerts/migrations/0068_remove_resolutionnoteslackmessage__slack_channel_id_state.py
Checking engine/apps/schedules/migrations/0020_remove_oncallschedule_channel_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/schedules/migrations/0020_remove_oncallschedule_channel_state.py
Checking engine/apps/user_management/migrations/0028_remove_organization_general_log_channel_id_state.py for migrations.RemoveField...
✅ No RemoveField found in engine/apps/user_management/migrations/0028_remove_organization_general_log_channel_id_state.py
Checking engine/apps/user_management/migrations/0029_joey_test.py for migrations.RemoveField...
❌ Error: Found migrations.RemoveField in engine/apps/user_management/migrations/0029_joey_test.py
❌ Error: Found migrations.RemoveField in one or more migration files. Please check out our documentation at https://github.com/grafana/oncall/tree/dev/dev#removing-a-nullable-field-from-a-model on how to properly drop columns.
# What this PR does Second, and final part of, #5277 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes.
What this PR does
(as documented here, I have the four additional migration files (which actually do the
DROP COLUMN
s in the db) saved locally, and will include these in a separate PR/release)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.