From 80a790db53c6880ba482073aa95ea4d4348cf2ad Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 16 May 2005 11:23:58 +0000 Subject: [PATCH] Updated stats blob sizes to full ints. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1408 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/zmalter-1.21.0.sql | 5 +++++ db/zmschema.sql.z | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/db/zmalter-1.21.0.sql b/db/zmalter-1.21.0.sql index 4a8d860ec..95d453b02 100644 --- a/db/zmalter-1.21.0.sql +++ b/db/zmalter-1.21.0.sql @@ -5,6 +5,11 @@ -- alter table Monitors modify column Orientation enum('0','90','180','270','hori','vert') NOT NULL default '0'; -- +-- 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'; +-- -- These are optional, but we might as well do it now -- optimize table Frames; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index 4ea3a1d1c..ac1261e2f 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -178,8 +178,8 @@ CREATE TABLE Stats ( FilterPixels int(10) unsigned NOT NULL default '0', BlobPixels int(10) unsigned NOT NULL default '0', Blobs smallint(5) unsigned NOT NULL default '0', - MinBlobSize smallint(5) unsigned NOT NULL default '0', - MaxBlobSize smallint(5) unsigned NOT NULL default '0', + MinBlobSize int(10) unsigned NOT NULL default '0', + MaxBlobSize int(10) unsigned NOT NULL default '0', MinX smallint(5) unsigned NOT NULL default '0', MaxX smallint(5) unsigned NOT NULL default '0', MinY smallint(5) unsigned NOT NULL default '0',