Added uploaded field to Events.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@253 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
1f3b16e7ec
commit
00ed31cdeb
|
@ -20,7 +20,9 @@ alter table Monitors modify column Function enum('None','Passive','Active','X10'
|
||||||
update Monitors set LabelFormat = '%%s - %y/%m/%d %H:%M:%S';
|
update Monitors set LabelFormat = '%%s - %y/%m/%d %H:%M:%S';
|
||||||
update Monitors set LabelX = 0;
|
update Monitors set LabelX = 0;
|
||||||
update Monitors set LabelY = Height-8;
|
update Monitors set LabelY = Height-8;
|
||||||
alter table Events add column LearnState char(1) default '' after Archived;
|
alter table Events modify column Archived tinyint unsigned not null default 0;
|
||||||
|
alter table Events add column Uploaded tinyint unsigned not null default 0 after Archived;
|
||||||
|
alter table Events add column LearnState char(1) default '' after Uploaded;
|
||||||
CREATE TABLE Filters (
|
CREATE TABLE Filters (
|
||||||
Id int(10) unsigned NOT NULL auto_increment,
|
Id int(10) unsigned NOT NULL auto_increment,
|
||||||
MonitorId int(10) unsigned NOT NULL default '0',
|
MonitorId int(10) unsigned NOT NULL default '0',
|
||||||
|
|
|
@ -27,12 +27,14 @@ CREATE TABLE Events (
|
||||||
AlarmFrames int(10) unsigned default NULL,
|
AlarmFrames int(10) unsigned default NULL,
|
||||||
AvgScore tinyint(3) unsigned default '0',
|
AvgScore tinyint(3) unsigned default '0',
|
||||||
MaxScore tinyint(3) unsigned default '0',
|
MaxScore tinyint(3) unsigned default '0',
|
||||||
Archived tinyint(4) default '0',
|
Archived tinyint(3) unsigned NOT NULL default '0',
|
||||||
|
Uploaded tinyint(3) unsigned NOT NULL default '0',
|
||||||
LearnState char(1) default '',
|
LearnState char(1) default '',
|
||||||
PRIMARY KEY (Id),
|
PRIMARY KEY (Id),
|
||||||
UNIQUE KEY UC_Id (Id),
|
UNIQUE KEY UC_Id (Id),
|
||||||
KEY Id (Id,MonitorId),
|
KEY Id (Id,MonitorId),
|
||||||
KEY MonitorId (MonitorId)
|
KEY MonitorId (MonitorId),
|
||||||
|
KEY StartTime (StartTime)
|
||||||
) TYPE=MyISAM;
|
) TYPE=MyISAM;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue