From 83f8fd1e6e4ec88270c80b0a3eae7dfc570c421f Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 4 Jul 2003 13:26:14 +0000 Subject: [PATCH] Updated for v0.9.14 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@598 e3e1d417-86f3-4887-817a-d78f3d33393f --- db/Makefile.am | 2 +- db/Makefile.in | 2 +- db/zmalter-0.9.13.sql | 28 ++++++++++++++++++++++++++++ db/zmschema.sql.z | 22 ++++++++++++++++++++++ 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 db/zmalter-0.9.13.sql diff --git a/db/Makefile.am b/db/Makefile.am index d36192989..09759880f 100644 --- a/db/Makefile.am +++ b/db/Makefile.am @@ -1,3 +1,3 @@ AUTOMAKE_OPTIONS = gnu -EXTRA_DIST = zmschema.sql.z zmalter-0.0.1.sql zmalter-0.9.7.sql zmalter-0.9.8.sql zmalter-0.9.9.sql zmalter-0.9.10.sql zmalter-0.9.11.sql zmalter-0.9.12.sql +EXTRA_DIST = zmschema.sql.z zmalter-0.0.1.sql zmalter-0.9.7.sql zmalter-0.9.8.sql zmalter-0.9.9.sql zmalter-0.9.10.sql zmalter-0.9.11.sql zmalter-0.9.12.sql zmalter-0.9.13.sql diff --git a/db/Makefile.in b/db/Makefile.in index 04ccff2ab..38bf6bc42 100644 --- a/db/Makefile.in +++ b/db/Makefile.in @@ -117,7 +117,7 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = gnu -EXTRA_DIST = zmschema.sql.z zmalter-0.0.1.sql zmalter-0.9.7.sql zmalter-0.9.8.sql zmalter-0.9.9.sql zmalter-0.9.10.sql zmalter-0.9.11.sql zmalter-0.9.12.sql +EXTRA_DIST = zmschema.sql.z zmalter-0.0.1.sql zmalter-0.9.7.sql zmalter-0.9.8.sql zmalter-0.9.9.sql zmalter-0.9.10.sql zmalter-0.9.11.sql zmalter-0.9.12.sql zmalter-0.9.13.sql subdir = db mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h diff --git a/db/zmalter-0.9.13.sql b/db/zmalter-0.9.13.sql new file mode 100644 index 000000000..932ad5a4c --- /dev/null +++ b/db/zmalter-0.9.13.sql @@ -0,0 +1,28 @@ +-- +-- This updates a 0.9.13 database to 0.9.14 +-- +CREATE TABLE Config ( + Id smallint(5) unsigned NOT NULL default '0', + Name varchar(32) NOT NULL default '', + Value text NOT NULL, + Type tinytext NOT NULL, + DefaultValue tinytext, + Hint tinytext, + Pattern tinytext, + Format tinytext, + Prompt tinytext, + Help text, + Category varchar(32) NOT NULL default '', + Readonly tinyint(3) unsigned NOT NULL default '0', + Requires text, + PRIMARY KEY (Name), + UNIQUE KEY UC_Name (Name) +) TYPE=MyISAM; +-- +-- 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 fcf731996..4bc398acd 100644 --- a/db/zmschema.sql.z +++ b/db/zmschema.sql.z @@ -12,6 +12,28 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ ZM_DB_NAME; USE ZM_DB_NAME; +-- +-- Table structure for table 'Config' +-- + +CREATE TABLE Config ( + Id smallint(5) unsigned NOT NULL default '0', + Name varchar(32) NOT NULL default '', + Value text NOT NULL, + Type tinytext NOT NULL, + DefaultValue tinytext, + Hint tinytext, + Pattern tinytext, + Format tinytext, + Prompt tinytext, + Help text, + Category varchar(32) NOT NULL default '', + Readonly tinyint(3) unsigned NOT NULL default '0', + Requires text, + PRIMARY KEY (Name), + UNIQUE KEY UC_Name (Name) +) TYPE=MyISAM; + -- -- Table structure for table 'Events' --