From c767d79aefae282768a1516f6e77b40a4b32f73b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 5 Feb 2018 22:59:37 -0500 Subject: [PATCH] fix typo --- db/zm_update-1.31.34.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/zm_update-1.31.34.sql b/db/zm_update-1.31.34.sql index c3073233d..24c0ee844 100644 --- a/db/zm_update-1.31.34.sql +++ b/db/zm_update-1.31.34.sql @@ -5,7 +5,7 @@ CREATE TRIGGER Events_Hour_delete_trigger BEFORE DELETE ON Events_Hour FOR EACH ROW BEGIN UPDATE Monitors SET HourEvents = COALESCE(HourEvents,1)-1, - HourEventDiskSpace=COALESCE(HourEventDiskSpace)-COALESCE(OLD.DiskSpace,0) + HourEventDiskSpace=COALESCE(HourEventDiskSpace,0)-COALESCE(OLD.DiskSpace,0) WHERE Id=OLD.MonitorId; END; //