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:
stan 2008-09-29 11:43:30 +00:00
parent 5bfe4b72c7
commit 43a1802b90
1 changed files with 2 additions and 2 deletions

View File

@ -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