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:
parent
35538eae48
commit
08c72bb100
|
@ -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;
|
|
@ -2,7 +2,7 @@
|
||||||
--
|
--
|
||||||
-- Host: localhost Database: ZM_DB_NAME
|
-- Host: localhost Database: ZM_DB_NAME
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
-- Server version 3.23.49
|
-- Server version 3.23.49
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Current Database: ZM_DB_NAME
|
-- Current Database: ZM_DB_NAME
|
||||||
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue