From 596030a8f09cacfe90ca6dfaa1b833e0e9934f9c Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 5 May 2005 16:46:47 +0000 Subject: [PATCH] Added flipped monitors changes. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1399 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/Makefile.am | 3 ++- db/zmalter-1.21.0.sql | 15 +++++++++++++++ db/zmschema.sql.z | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 db/zmalter-1.21.0.sql diff --git a/db/Makefile.am b/db/Makefile.am index 5751cd14b..d8bd0cffb 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -23,4 +23,5 @@ EXTRA_DIST = \ zmalter-1.19.4.sql \ zmalter-1.19.5.sql \ zmalter-1.20.0.sql \ - zmalter-1.20.1.sql + zmalter-1.20.1.sql \ + zmalter-1.21.0.sql diff --git a/db/zmalter-1.21.0.sql b/db/zmalter-1.21.0.sql new file mode 100644 index 000000000..4a8d860ec --- /dev/null +++ b/db/zmalter-1.21.0.sql @@ -0,0 +1,15 @@ +-- +-- This updates a 1.21.0 database to 1.21.1 +-- +-- Make changes to Monitors table +-- +alter table Monitors modify column Orientation enum('0','90','180','270','hori','vert') NOT NULL default '0'; +-- +-- These are optional, but we might as well do it now +-- +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 c7d7adc7b..4ea3a1d1c 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -125,7 +125,7 @@ CREATE TABLE Monitors ( Width smallint(5) unsigned NOT NULL default '0', Height smallint(5) unsigned NOT NULL default '0', Palette tinyint(3) unsigned NOT NULL default '1', - Orientation enum('0','90','180','270') NOT NULL default '0', + Orientation enum('0','90','180','270','hori','vert') NOT NULL default '0', Brightness mediumint(7) NOT NULL default '-1', Contrast mediumint(7) NOT NULL default '-1', Hue mediumint(7) NOT NULL default '-1',