Added new fields for auto execution of script filters.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1014 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-04-19 15:59:12 +00:00
parent d7671a1daf
commit 2a2f371bae
4 changed files with 25 additions and 8 deletions

View File

@ -16,4 +16,5 @@ EXTRA_DIST = \
zmalter-1.17.2.sql \ zmalter-1.17.2.sql \
zmalter-1.18.0.sql \ zmalter-1.18.0.sql \
zmalter-1.18.1.sql \ zmalter-1.18.1.sql \
zmalter-1.19.0.sql zmalter-1.19.0.sql\
zmalter-1.19.1.sql

View File

@ -106,7 +106,7 @@ EXTRA_DIST = \
zmalter-1.17.2.sql \ zmalter-1.17.2.sql \
zmalter-1.18.0.sql \ zmalter-1.18.0.sql \
zmalter-1.18.1.sql \ zmalter-1.18.1.sql \
zmalter-1.19.0.sql zmalter-1.19.0.sql\
subdir = db subdir = db
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@ -226,6 +226,7 @@ uninstall-am: uninstall-info-am
maintainer-clean maintainer-clean-generic mostlyclean \ maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic uninstall uninstall-am uninstall-info-am mostlyclean-generic uninstall uninstall-am uninstall-info-am
zmalter-1.19.1.sql
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: .NOEXPORT:

19
db/zmalter-1.19.1.sql Normal file
View File

@ -0,0 +1,19 @@
--
-- This updates a 1.19.1 database to 1.19.2
--
-- Make changes to Events table
--
alter table Events add column Executed tinyint(3) unsigned not null default 0 after Messaged;
--
-- Make changes to Filters table
--
alter table Filters add column AutoExecute tinytext default '';
--
-- These are optional, but we might as well
--
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

@ -1,9 +1,3 @@
-- MySQL dump 8.23
--
-- Host: localhost Database: ZM_DB_NAME
---------------------------------------------------------
-- Server version 3.23.58
-- --
-- Current Database: ZM_DB_NAME -- Current Database: ZM_DB_NAME
-- --
@ -54,6 +48,7 @@ CREATE TABLE Events (
Uploaded tinyint(3) unsigned NOT NULL default '0', Uploaded tinyint(3) unsigned NOT NULL default '0',
Emailed tinyint(3) unsigned NOT NULL default '0', Emailed tinyint(3) unsigned NOT NULL default '0',
Messaged tinyint(3) unsigned NOT NULL default '0', Messaged tinyint(3) unsigned NOT NULL default '0',
Executed tinyint(3) unsigned NOT NULL default '0',
LearnState char(1) default '', LearnState char(1) default '',
PRIMARY KEY (Id), PRIMARY KEY (Id),
UNIQUE KEY UC_Id (Id), UNIQUE KEY UC_Id (Id),
@ -74,6 +69,7 @@ CREATE TABLE Filters (
AutoUpload tinyint(3) unsigned NOT NULL default '0', AutoUpload tinyint(3) unsigned NOT NULL default '0',
AutoEmail tinyint(3) unsigned NOT NULL default '0', AutoEmail tinyint(3) unsigned NOT NULL default '0',
AutoMessage tinyint(3) unsigned NOT NULL default '0', AutoMessage tinyint(3) unsigned NOT NULL default '0',
AutoExecute tinytext,
PRIMARY KEY (Name) PRIMARY KEY (Name)
) TYPE=MyISAM; ) TYPE=MyISAM;