From 6c9d40767c8a01788c38c6eeeb04af66c05962be Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 13 Oct 2004 09:36:10 +0000 Subject: [PATCH] Added new index to Events table. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1142 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/zmalter-1.19.5.sql | 15 +++++++++++++++ db/zmschema.sql.z | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 db/zmalter-1.19.5.sql diff --git a/db/zmalter-1.19.5.sql b/db/zmalter-1.19.5.sql new file mode 100644 index 000000000..f2d4256f4 --- /dev/null +++ b/db/zmalter-1.19.5.sql @@ -0,0 +1,15 @@ +-- +-- This updates a 1.19.5 database to 1.19.6 +-- +-- Add a new index to the Events table +-- +alter table Events add index (Frames); +-- +-- 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 66abe9cf8..30689e947 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -54,7 +54,8 @@ CREATE TABLE Events ( UNIQUE KEY UC_Id (Id), KEY Id (Id,MonitorId), KEY MonitorId (MonitorId), - KEY StartTime (StartTime) + KEY StartTime (StartTime), + KEY Frames (Frames) ) TYPE=MyISAM; --