From 02d8d3dbd8d83593fc801d9b40690c5eea5a1a77 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 16 Oct 2005 20:57:29 +0000 Subject: [PATCH] Added 1.21.4 updates git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1504 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/Makefile.am | 3 ++- db/zmalter-1.21.3.sql | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 db/zmalter-1.21.3.sql diff --git a/db/Makefile.am b/db/Makefile.am index 0f249c4c1..d57eed649 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -26,4 +26,5 @@ EXTRA_DIST = \ zmalter-1.20.1.sql \ zmalter-1.21.0.sql \ zmalter-1.21.1.sql \ - zmalter-1.21.2.sql + zmalter-1.21.2.sql \ + zmalter-1.21.3.sql diff --git a/db/zmalter-1.21.3.sql b/db/zmalter-1.21.3.sql new file mode 100644 index 000000000..afbc2d427 --- /dev/null +++ b/db/zmalter-1.21.3.sql @@ -0,0 +1,16 @@ +-- +-- This updates a 1.21.2 database to 1.21.3 +-- +alter table Monitors add column WebColour varchar(32) NOT NULL default 'red'; +update Monitors set WebColour = concat( '#', hex(14*rand()),hex(15*rand()),hex(14*rand()),hex(15*rand()),hex(14*rand()),hex(15*rand()) ); +alter table Events add column Height smallint(5) unsigned NOT NULL default '0' after EndTime; +alter table Events add column Width smallint(5) unsigned NOT NULL default '0' after EndTime; +-- +-- 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;