From c539969faa00de84b37c3049e22d9d670e65f975 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 23 Apr 2021 12:54:41 -0400 Subject: [PATCH] Cleanup --- db/zm_update-1.35.27.sql | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/db/zm_update-1.35.27.sql b/db/zm_update-1.35.27.sql index b47fd54f2..8efef50e5 100644 --- a/db/zm_update-1.35.27.sql +++ b/db/zm_update-1.35.27.sql @@ -1,5 +1,5 @@ -- --- Add EventCloseMode moved from General Config +-- Add ModectDuringPTZ -- SET @s = (SELECT IF( @@ -13,24 +13,3 @@ SET @s = (SELECT IF( PREPARE stmt FROM @s; EXECUTE stmt; - -UPDATE `Monitors` SET EventCloseMode = (SELECT Value from Config WHERE Name='ZM_EVENT_CLOSE_MODE'); - - --- --- Add Snapshot permission to Users --- - -SET @s = (SELECT IF( - (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() - AND table_name = 'Users' - AND column_name = 'Snapshots' - ) > 0, -"SELECT 'Column Snapshots already exists in Users'", -"ALTER TABLE `Users` ADD `Snapshots` enum('None','View','Edit') NOT NULL default 'None' AFTER `Devices`" -)); - -PREPARE stmt FROM @s; -EXECUTE stmt; - -UPDATE `Users` SET `Snapshots` = `Events`;