Updated for 0.9.10

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@422 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-03-26 12:48:15 +00:00
parent 35538eae48
commit 08c72bb100
2 changed files with 18 additions and 1 deletions

13
db/zmalter-0.9.9.sql Normal file
View File

@ -0,0 +1,13 @@
--
-- This updates a 0.9.9 database to 0.9.10
--
alter table Monitors add column Type enum('Local','Remote') NOT NULL default 'Local' after Name;
alter table Monitors add column Host varchar(64) default NULL after Format;
alter table Monitors add column Port varchar(8) default '80' after Host;
alter table Monitors add column Path varchar(255) default NULL after Port;
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

@ -82,10 +82,14 @@ CREATE TABLE Frames (
CREATE TABLE Monitors ( CREATE TABLE Monitors (
Id int(10) unsigned NOT NULL auto_increment, Id int(10) unsigned NOT NULL auto_increment,
Name tinytext NOT NULL, Name tinytext NOT NULL,
Type enum('Local','Remote') NOT NULL default 'Local',
Function enum('None','Passive','Active','X10') NOT NULL default 'Passive', Function enum('None','Passive','Active','X10') NOT NULL default 'Passive',
Device tinyint(3) unsigned NOT NULL default '0', Device tinyint(3) unsigned NOT NULL default '0',
Channel tinyint(3) unsigned NOT NULL default '0', Channel tinyint(3) unsigned NOT NULL default '0',
Format tinyint(3) unsigned NOT NULL default '0', Format tinyint(3) unsigned NOT NULL default '0',
Host varchar(64) default NULL,
Port varchar(8) default '80',
Path varchar(255) default NULL,
Width smallint(5) unsigned NOT NULL default '0', Width smallint(5) unsigned NOT NULL default '0',
Height smallint(5) unsigned NOT NULL default '0', Height smallint(5) unsigned NOT NULL default '0',
Colours tinyint(3) unsigned NOT NULL default '0', Colours tinyint(3) unsigned NOT NULL default '0',