From 980dfad4476a39916f9162c2ddba5f887ae76257 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Thu, 19 Dec 2024 17:25:21 +0545 Subject: [PATCH] dummy change in script to trigger migration we need to recreate the view `notification_send_history_summary` --- views/021_notification.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/views/021_notification.sql b/views/021_notification.sql index 979e8466..1736b319 100644 --- a/views/021_notification.sql +++ b/views/021_notification.sql @@ -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 @@ -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 $$ @@ -27,7 +25,6 @@ BEGIN IF OLD.filter != NEW.filter THEN NEW.error = NULL; END IF; - RETURN NEW; END $$ @@ -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 @@ -156,4 +152,3 @@ SELECT FROM combined; -