From 664025b316b6493ca69a0dcf6831c18658266ed4 Mon Sep 17 00:00:00 2001 From: poveyd <32199157+poveyd@users.noreply.github.com> Date: Tue, 5 May 2020 14:18:46 +0100 Subject: [PATCH] Update cycle_notification_history.sql --- database_maintenance/cycle_notification_history.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/database_maintenance/cycle_notification_history.sql b/database_maintenance/cycle_notification_history.sql index 90028400d..dcfa7e091 100644 --- a/database_maintenance/cycle_notification_history.sql +++ b/database_maintenance/cycle_notification_history.sql @@ -22,6 +22,7 @@ END $$; DROP TRIGGER IF EXISTS update_pivot on notification_history; +-- Following may be blocked if running vacuum. CREATE TRIGGER update_pivot AFTER UPDATE OF notification_status, billable_units, updated_at, sent_by, sent_at ON notification_history FOR EACH ROW EXECUTE PROCEDURE update_pivot_table();