This commit is contained in:
Isaac Connor 2018-02-05 22:59:37 -05:00
parent a4c956da7d
commit c767d79aef
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CREATE TRIGGER Events_Hour_delete_trigger BEFORE DELETE ON Events_Hour
FOR EACH ROW BEGIN FOR EACH ROW BEGIN
UPDATE Monitors SET UPDATE Monitors SET
HourEvents = COALESCE(HourEvents,1)-1, HourEvents = COALESCE(HourEvents,1)-1,
HourEventDiskSpace=COALESCE(HourEventDiskSpace)-COALESCE(OLD.DiskSpace,0) HourEventDiskSpace=COALESCE(HourEventDiskSpace,0)-COALESCE(OLD.DiskSpace,0)
WHERE Id=OLD.MonitorId; WHERE Id=OLD.MonitorId;
END; END;
// //