From 35b3d236e037d7adc95848785cfcb6339e25490a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Apr 2021 19:47:08 -0400 Subject: [PATCH] Fix typo in triggers --- db/triggers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/triggers.sql b/db/triggers.sql index 813d833d6..58f09bcbf 100644 --- a/db/triggers.sql +++ b/db/triggers.sql @@ -190,7 +190,7 @@ FOR EACH ROW INSERT INTO Events_Day (EventId,MonitorId,StartDateTime,DiskSpace) VALUES (NEW.Id,NEW.MonitorId,NEW.StartDateTime,0); INSERT INTO Events_Week (EventId,MonitorId,StartDateTime,DiskSpace) VALUES (NEW.Id,NEW.MonitorId,NEW.StartDateTime,0); INSERT INTO Events_Month (EventId,MonitorId,StartDateTime,DiskSpace) VALUES (NEW.Id,NEW.MonitorId,NEW.StartDateTime,0); - INSERT INTO Event_Summaries (MonitorId,HourEent,DayEvents,WeekEvents,MonthEvents,TotalEvents) VALUES (NEW.MonitorId,1,1,1,1,1) ON DUPLICATE KEY + INSERT INTO Event_Summaries (MonitorId,HourEvents,DayEvents,WeekEvents,MonthEvents,TotalEvents) VALUES (NEW.MonitorId,1,1,1,1,1) ON DUPLICATE KEY UPDATE HourEvents = COALESCE(HourEvents,0)+1, DayEvents = COALESCE(DayEvents,0)+1,