summaryrefslogtreecommitdiffstats
path: root/create
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-03 19:30:29 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-03 19:30:29 +0000
commitea1add8bb3ca2f7396be6d4ef1f6772aaf3f3f26 (patch)
treef7b441f64b71dbcaf40f873f830bdad3c4db15e0 /create
parent13ea6377b078793ee736b7c35b8b101d630967d5 (diff)
- added table 'hosts_templates' (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1575 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create')
-rw-r--r--create/mysql/schema.sql15
-rw-r--r--create/postgresql/schema.sql15
2 files changed, 30 insertions, 0 deletions
diff --git a/create/mysql/schema.sql b/create/mysql/schema.sql
index 2e66493b..8feeb2b7 100644
--- a/create/mysql/schema.sql
+++ b/create/mysql/schema.sql
@@ -617,3 +617,18 @@ CREATE TABLE escalations (
PRIMARY KEY (escalationid),
UNIQUE (name)
) type=InnoDB;
+
+--
+-- Table structure for table 'hosts_templates'
+--
+
+CREATE TABLE hosts_templates (
+ hostid int(4) DEFAULT '0' NOT NULL,
+ templateid int(4) DEFAULT '0' NOT NULL,
+ items int(1) DEFAULT '0' NOT NULL,
+ triggers int(1) DEFAULT '0' NOT NULL,
+ actions int(1) DEFAULT '0' NOT NULL,
+ graphs int(1) DEFAULT '0' NOT NULL,
+ screens int(1) DEFAULT '0' NOT NULL,
+ PRIMARY KEY (hostid, templateid)
+) type=InnoDB;
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 2a7b43ca..a406da91 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -624,4 +624,19 @@ CREATE TABLE escalations (
CREATE UNIQUE INDEX escalations_name on escalations (name);
+--
+-- Table structure for table 'hosts_templates'
+--
+
+CREATE TABLE hosts_templates (
+ hostid int4 DEFAULT '0' NOT NULL,
+ templateid int4 DEFAULT '0' NOT NULL,
+ items int2 DEFAULT '0' NOT NULL,
+ triggers int2 DEFAULT '0' NOT NULL,
+ actions int2 DEFAULT '0' NOT NULL,
+ graphs int2 DEFAULT '0' NOT NULL,
+ screens int2 DEFAULT '0' NOT NULL,
+ PRIMARY KEY (hostid, templateid)
+);
+
VACUUM ANALYZE;