From e33de2cce6e0209470e6487277dcc88e10fdd898 Mon Sep 17 00:00:00 2001 From: Joey Orlando Date: Tue, 25 Jul 2023 14:55:48 +0200 Subject: [PATCH] modify alert_receive_channel migration (#2634) # What this PR does ## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --- engine/apps/alerts/models/alert_receive_channel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/apps/alerts/models/alert_receive_channel.py b/engine/apps/alerts/models/alert_receive_channel.py index 41ada6a6..1ee7ba84 100644 --- a/engine/apps/alerts/models/alert_receive_channel.py +++ b/engine/apps/alerts/models/alert_receive_channel.py @@ -198,8 +198,11 @@ class AlertReceiveChannel(IntegrationOptionsMixin, MaintainableObject): rate_limited_in_slack_at = models.DateTimeField(null=True, default=None) rate_limit_message_task_id = models.CharField(max_length=100, null=True, default=None) - # TODO: drop this field in a subsequent release - restricted_at = models.DateTimeField(null=True, default=None) + # TODO: in a subsequent release, write a manual django migration to run the following + # migrations.RunSQL( + # sql = "ALTER TABLE alerts_alertreceivechannel DROP COLUMN restricted_at", + # reverse_sql = migrations.RunSQL.noop + # ) class Meta: constraints = [