diff --git a/db/Makefile.am b/db/Makefile.am index 8a08241aa..94824d3c9 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -16,4 +16,5 @@ EXTRA_DIST = \ zmalter-1.17.2.sql \ zmalter-1.18.0.sql \ zmalter-1.18.1.sql \ - zmalter-1.19.0.sql + zmalter-1.19.0.sql\ + zmalter-1.19.1.sql diff --git a/db/Makefile.in b/db/Makefile.in index aa6be229f..21154780d 100644 --- a/db/Makefile.in +++ b/db/Makefile.in @@ -106,7 +106,7 @@ EXTRA_DIST = \ zmalter-1.17.2.sql \ zmalter-1.18.0.sql \ zmalter-1.18.1.sql \ - zmalter-1.19.0.sql + zmalter-1.19.0.sql\ subdir = db mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs @@ -226,6 +226,7 @@ uninstall-am: uninstall-info-am maintainer-clean maintainer-clean-generic mostlyclean \ 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. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/db/zmalter-1.19.1.sql b/db/zmalter-1.19.1.sql new file mode 100644 index 000000000..f06d7369a --- /dev/null +++ b/db/zmalter-1.19.1.sql @@ -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; diff --git a/db/zmschema.sql.z b/db/zmschema.sql.z index aa8f9e284..9d785a805 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -1,9 +1,3 @@ --- MySQL dump 8.23 --- --- Host: localhost Database: ZM_DB_NAME ---------------------------------------------------------- --- Server version 3.23.58 - -- -- Current Database: ZM_DB_NAME -- @@ -54,6 +48,7 @@ CREATE TABLE Events ( Uploaded tinyint(3) unsigned NOT NULL default '0', Emailed 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 '', PRIMARY KEY (Id), UNIQUE KEY UC_Id (Id), @@ -74,6 +69,7 @@ CREATE TABLE Filters ( AutoUpload tinyint(3) unsigned NOT NULL default '0', AutoEmail tinyint(3) unsigned NOT NULL default '0', AutoMessage tinyint(3) unsigned NOT NULL default '0', + AutoExecute tinytext, PRIMARY KEY (Name) ) TYPE=MyISAM;