From 08c72bb1005fef41cace73a603038fb703b8bd59 Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 26 Mar 2003 12:48:15 +0000 Subject: [PATCH] Updated for 0.9.10 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@422 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/zmalter-0.9.9.sql | 13 +++++++++++++ db/zmschema.sql.z | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 db/zmalter-0.9.9.sql diff --git a/db/zmalter-0.9.9.sql b/db/zmalter-0.9.9.sql new file mode 100644 index 000000000..289b3a365 --- /dev/null +++ b/db/zmalter-0.9.9.sql @@ -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; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index d637c2d53..728c983e6 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -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 @@ -82,10 +82,14 @@ CREATE TABLE Frames ( CREATE TABLE Monitors ( Id int(10) unsigned NOT NULL auto_increment, Name tinytext NOT NULL, + Type enum('Local','Remote') NOT NULL default 'Local', Function enum('None','Passive','Active','X10') NOT NULL default 'Passive', Device tinyint(3) unsigned NOT NULL default '0', Channel 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', Height smallint(5) unsigned NOT NULL default '0', Colours tinyint(3) unsigned NOT NULL default '0',