diff --git a/db/zm_update-1.37.multistream.sql b/db/zm_update-1.37.multistream.sql index 9cf219b06..852573251 100644 --- a/db/zm_update-1.37.multistream.sql +++ b/db/zm_update-1.37.multistream.sql @@ -10,7 +10,7 @@ SET @s = (SELECT IF( PREPARE stmt FROM @s; EXECUTE stmt; -UPDATE `Monitors` SET `Capturing` = 'None' WHERE `Function` == 'None'; +UPDATE `Monitors` SET `Capturing` = 'None' WHERE `Function` = 'None'; SET @s = (SELECT IF( (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() @@ -24,7 +24,7 @@ SET @s = (SELECT IF( PREPARE stmt FROM @s; EXECUTE stmt; -UPDATE `Monitors` SET `Analysing` = 'None' WHERE `Function` == 'Record' OR `Function` == 'Nodect'; +UPDATE `Monitors` SET `Analysing` = 'None' WHERE `Function` = 'Record' OR `Function` = 'Nodect'; SET @s = (SELECT IF( (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() @@ -50,8 +50,8 @@ 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'; +UPDATE `Monitors` SET `Recording` = 'None' WHERE `Function` = 'Monitor'; +UPDATE `Monitors` SET `Recording` = 'OnMotion' WHERE `Function` = 'Modect'; SET @s = (SELECT IF( (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE()