Made MaxFPS default to NULL rather than 0.0

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1882 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2006-03-23 18:13:47 +00:00
parent b2d49c145f
commit cb1b09e257
2 changed files with 3 additions and 1 deletions

View File

@ -284,7 +284,7 @@ CREATE TABLE Monitors (
AlarmFrameCount smallint(5) unsigned NOT NULL default '1', AlarmFrameCount smallint(5) unsigned NOT NULL default '1',
SectionLength int(10) unsigned NOT NULL default '600', SectionLength int(10) unsigned NOT NULL default '600',
FrameSkip smallint(5) unsigned NOT NULL default '0', FrameSkip smallint(5) unsigned NOT NULL default '0',
MaxFPS decimal(5,2) NOT NULL default '0.00', MaxFPS decimal(5,2) default NULL,
FPSReportInterval smallint(5) unsigned NOT NULL default '250', FPSReportInterval smallint(5) unsigned NOT NULL default '250',
RefBlendPerc tinyint(3) unsigned NOT NULL default '10', RefBlendPerc tinyint(3) unsigned NOT NULL default '10',
Controllable tinyint(3) unsigned NOT NULL default '0', Controllable tinyint(3) unsigned NOT NULL default '0',

View File

@ -12,6 +12,8 @@ alter table Monitors modify column Port varchar(8) not null default '';
alter table Monitors modify column Path varchar(255) not null default ''; alter table Monitors modify column Path varchar(255) not null default '';
alter table Monitors modify column LabelX smallint(5) unsigned not null default 0; alter table Monitors modify column LabelX smallint(5) unsigned not null default 0;
alter table Monitors modify column LabelY smallint(5) unsigned not null default 0; alter table Monitors modify column LabelY smallint(5) unsigned not null default 0;
alter table Monitors modify column MaxFPS decimal(5,2) default NULL;
update Monitors set MaxFPS = NULL where MaxFPS = 0.00;
-- --
-- Modify zone presets a bit -- Modify zone presets a bit