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:
stan 2003-01-07 12:49:25 +00:00
parent 1f3b16e7ec
commit 00ed31cdeb
2 changed files with 7 additions and 3 deletions

View File

@ -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 LabelX = 0;
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 (
Id int(10) unsigned NOT NULL auto_increment,
MonitorId int(10) unsigned NOT NULL default '0',

View File

@ -27,12 +27,14 @@ CREATE TABLE Events (
AlarmFrames int(10) unsigned default NULL,
AvgScore 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 '',
PRIMARY KEY (Id),
UNIQUE KEY UC_Id (Id),
KEY Id (Id,MonitorId),
KEY MonitorId (MonitorId)
KEY MonitorId (MonitorId),
KEY StartTime (StartTime)
) TYPE=MyISAM;
--