-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove
SlackMessage._channel_id
and `SlackMessage.organizati…
…on` fields (#5340) # What this PR does Follow-up cleanup PR for #5325 (and #5330) ## 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.
- Loading branch information
1 parent
e115617
commit dd23931
Showing
6 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
engine/apps/slack/0013_remove_slackmessage__channel_id_db.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# NOTE: this is being left in this directory on purpose, it will be moved to apps/alerts/migrations | ||
# in a separate PR/release | ||
# | ||
# Generated by Django 4.2.17 on 2024-12-06 17:05 | ||
|
||
from django.db import migrations | ||
|
||
import common.migrations.remove_field | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("slack", "0012_remove_slackmessage_organization_state"), | ||
] | ||
|
||
operations = [ | ||
common.migrations.remove_field.RemoveFieldDB( | ||
model_name="SlackMessage", | ||
name="_channel_id", | ||
remove_state_migration=("slack", "0011_remove_slackmessage__channel_id_state"), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
engine/apps/slack/0014_remove_slackmessage_organization_db.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# NOTE: this is being left in this directory on purpose, it will be moved to apps/alerts/migrations | ||
# in a separate PR/release | ||
# | ||
# Generated by Django 4.2.17 on 2024-12-06 17:05 | ||
|
||
from django.db import migrations | ||
|
||
import common.migrations.remove_field | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("slack", "0013_remove_slackmessage__channel_id_db"), | ||
] | ||
|
||
operations = [ | ||
common.migrations.remove_field.RemoveFieldDB( | ||
model_name="SlackMessage", | ||
name="organization", | ||
remove_state_migration=("slack", "0012_remove_slackmessage_organization_state"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
engine/apps/slack/migrations/0011_remove_slackmessage__channel_id_state.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.17 on 2024-12-06 17:05 | ||
|
||
import common.migrations.remove_field | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('slack', '0010_remove_slackmessage_active_update_task_id_db'), | ||
] | ||
|
||
operations = [ | ||
common.migrations.remove_field.RemoveFieldState( | ||
model_name='SlackMessage', | ||
name='_channel_id', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
engine/apps/slack/migrations/0012_remove_slackmessage_organization_state.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.17 on 2024-12-06 17:05 | ||
|
||
import common.migrations.remove_field | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('slack', '0011_remove_slackmessage__channel_id_state'), | ||
] | ||
|
||
operations = [ | ||
common.migrations.remove_field.RemoveFieldState( | ||
model_name='SlackMessage', | ||
name='organization', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters