Fix Analysis remaining turned on for Monitor and NoDect

pull/3485/head
Isaac Connor 2022-05-17 14:03:04 -04:00
parent 0fedb97b57
commit 61fc107808
1 changed files with 4 additions and 3 deletions

View File

@ -52,9 +52,10 @@ SET @s = (SELECT IF(
PREPARE stmt FROM @s;
EXECUTE stmt;
UPDATE `Monitors` SET `Recording` = 'None' WHERE `Function` = 'Monitor';
UPDATE `Monitors` SET `Recording` = 'OnMotion' WHERE `Function` = 'Modect' OR `Function` = 'Nodect';
UPDATE `Monitors` SET `Recording` = 'Always' WHERE `Function` = 'Mocord';
UPDATE `Monitors` SET `Recording`='None', `Analysing`='None' WHERE `Function` = 'Monitor';
UPDATE `Monitors` SET `Recording`='OnMotion', `Analysing`='None' WHERE `Function` = 'Nodect';
UPDATE `Monitors` SET `Recording`='OnMotion' WHERE `Function` = 'Modect';
UPDATE `Monitors` SET `Recording`='Always' WHERE `Function` = 'Mocord';
SET @s = (SELECT IF(
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE()