Added flipped monitors changes.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1399 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-05-05 16:46:47 +00:00
parent ef95a37a73
commit 596030a8f0
3 changed files with 18 additions and 2 deletions

View File

@ -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

15
db/zmalter-1.21.0.sql Normal file
View File

@ -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;

View File

@ -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',