From 32e0c927479ba6ece6e2457df72a93962e44510b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 24 Sep 2020 13:43:05 -0400 Subject: [PATCH] After adding SaveJPEGs to Events, need to populate them with SaveJPegs from MOnitors --- db/zm_update-1.31.13.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/zm_update-1.31.13.sql b/db/zm_update-1.31.13.sql index dd63b347a..150264027 100644 --- a/db/zm_update-1.31.13.sql +++ b/db/zm_update-1.31.13.sql @@ -13,6 +13,8 @@ SET @s = (SELECT IF( PREPARE stmt FROM @s; EXECUTE stmt; +UPDATE `Events` SET `SaveJPEGs`=(SELECT `SaveJPEGs` FROM `Monitors` WHERE Monitors.Id = MonitorId) WHERE `SaveJPEGs` IS NULL; + SET @s = (SELECT IF( (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() AND table_name = 'Storage'