Skip to content

Commit

Permalink
dummy change in script to trigger migration
Browse files Browse the repository at this point in the history
we need to recreate the view `notification_send_history_summary`
  • Loading branch information
adityathebe committed Dec 19, 2024
1 parent 1a68da2 commit 980dfad
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions views/021_notification.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-- dependsOn: functions/drop.sql, views/006_config_views.sql

-- Handle before updates for notifications
CREATE OR REPLACE FUNCTION reset_notification_error_before_update ()
RETURNS TRIGGER
Expand All @@ -8,7 +7,6 @@ BEGIN
IF OLD.filter != NEW.filter OR OLD.custom_services != NEW.custom_services OR OLD.team_id != NEW.team_id THEN
NEW.error = NULL;
END IF;

RETURN NEW;
END
$$
Expand All @@ -27,7 +25,6 @@ BEGIN
IF OLD.filter != NEW.filter THEN
NEW.error = NULL;
END IF;

RETURN NEW;
END
$$
Expand All @@ -49,7 +46,6 @@ BEGIN
IF p_status NOT IN ('silenced', 'repeat-interval') THEN
RAISE EXCEPTION 'Status must be silenced or repeat-interval';
END IF;

SELECT
id INTO v_existing_id
FROM
Expand Down Expand Up @@ -156,4 +152,3 @@ SELECT
FROM
combined;


0 comments on commit 980dfad

Please sign in to comment.