From 136a115184b9af786e972b1bae6e058c949ecf43 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 16 May 2005 15:37:46 +0000 Subject: [PATCH] Bug 3 - Made zone blobs limits full ints. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1411 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/zmalter-1.21.0.sql | 9 +++++++-- db/zmschema.sql.z | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/db/zmalter-1.21.0.sql b/db/zmalter-1.21.0.sql index 95d453b02..ceed0a121 100644 --- a/db/zmalter-1.21.0.sql +++ b/db/zmalter-1.21.0.sql @@ -7,8 +7,13 @@ alter table Monitors modify column Orientation enum('0','90','180','270','hori', -- -- Make changes to Stats table -- -alter table Sats modify column MinBlobSize int(10) unsigned NOT NULL default '0'; -alter table Sats modify column MaxBlobSize int(10) unsigned NOT NULL default '0'; +alter table Stats modify column MinBlobSize int(10) unsigned NOT NULL default '0'; +alter table Stats modify column MaxBlobSize int(10) unsigned NOT NULL default '0'; +-- +-- Make changes to Zones table +-- +alter table Zones modify column MinBlobPixels int(10) unsigned default NULL; +alter table Zones modify column MaxBlobPixels int(10) unsigned default NULL; -- -- These are optional, but we might as well do it now -- diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index ac1261e2f..ec5165144 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -246,8 +246,8 @@ CREATE TABLE Zones ( FilterY tinyint(3) unsigned default NULL, MinFilterPixels int(10) unsigned default NULL, MaxFilterPixels int(10) unsigned default NULL, - MinBlobPixels smallint(5) unsigned default NULL, - MaxBlobPixels smallint(5) unsigned default NULL, + MinBlobPixels int(10) unsigned default NULL, + MaxBlobPixels int(10) unsigned default NULL, MinBlobs smallint(5) unsigned default NULL, MaxBlobs smallint(5) unsigned default NULL, PRIMARY KEY (Id),