Fixed issue with updating Config.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2638 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
5bfe4b72c7
commit
43a1802b90
|
@ -54,8 +54,8 @@ alter table Events drop column LearnState;
|
|||
--
|
||||
-- Update for new event close mode
|
||||
--
|
||||
update Config set Value = "time" where Name = "ZM_EVENT_CLOSE_MODE" and ( select Value from Config where Name = "ZM_FORCE_CLOSE_EVENTS" ) = 1;
|
||||
update Config set Value = "idle" where Name = "ZM_EVENT_CLOSE_MODE" and ( select Value from Config where Name = "ZM_FORCE_CLOSE_EVENTS" ) = 0;
|
||||
update Config set Value = "time" where Name = "ZM_EVENT_CLOSE_MODE" and ( select Value from ( select * from Config ) as TempConfig where Name = "ZM_FORCE_CLOSE_EVENTS" ) = 1;
|
||||
update Config set Value = "idle" where Name = "ZM_EVENT_CLOSE_MODE" and ( select Value from ( select * from Config ) as TempConfig where Name = "ZM_FORCE_CLOSE_EVENTS" ) = 0;
|
||||
|
||||
--
|
||||
-- These are optional, but we might as well do it now
|
||||
|
|
Loading…
Reference in New Issue