Made Length in Events numeric and moved and renamed Delta in Frames.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@387 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-03-11 15:13:44 +00:00
parent e786640c75
commit 8465406388
2 changed files with 7 additions and 2 deletions

View File

@ -2,3 +2,7 @@
-- This updates a 0.9.8 database to 0.9.9
--
update Monitors set Colours = Colours * 8;
optimize table Events;
alter table Events modify column Length numeric( 10, 2 ) not null default 0.00;
optimize table Frames;
alter table Frames add column Delta numeric( 8, 2 ) not null default 0.00 after TimeStamp;

View File

@ -2,7 +2,7 @@
--
-- Host: localhost Database: ZM_DB_NAME
---------------------------------------------------------
-- Server version 3.23.49
-- Server version 3.23.49
--
-- Current Database: ZM_DB_NAME
@ -22,7 +22,7 @@ CREATE TABLE Events (
Name tinytext NOT NULL,
StartTime datetime default NULL,
EndTime datetime default NULL,
Length int(10) unsigned default NULL,
Length decimal(10,2) NOT NULL default '0.00',
Frames int(10) unsigned default NULL,
AlarmFrames int(10) unsigned default NULL,
TotScore int(10) unsigned NOT NULL default '0',
@ -68,6 +68,7 @@ CREATE TABLE Frames (
AlarmFrame tinyint(4) NOT NULL default '0',
ImagePath tinytext NOT NULL,
TimeStamp timestamp(14) NOT NULL,
Delta decimal(8,2) NOT NULL default '0.00',
Score smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (Id),
UNIQUE KEY UC_Id (Id),