summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-29 20:06:45 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-29 20:06:45 +0000
commitee7af90ea57fd2a5e4b51c875164bf9e0e17900f (patch)
tree8f76981c45a582c9c904e56f6ce2140cfe3baaa3 /create/postgresql/schema.sql
parent047a776c63ececa1ac4bfe13819fd84ef7ddafc1 (diff)
downloadzabbix-ee7af90ea57fd2a5e4b51c875164bf9e0e17900f.tar.gz
zabbix-ee7af90ea57fd2a5e4b51c875164bf9e0e17900f.tar.xz
zabbix-ee7af90ea57fd2a5e4b51c875164bf9e0e17900f.zip
- added table 'trends' (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1070 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index e86ecdbf..760b1202 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -553,4 +553,18 @@ CREATE TABLE users_groups (
FOREIGN KEY (userid) REFERENCES users
);
+--
+-- Table structure for table 'trends'
+--
+
+CREATE TABLE trends (
+ itemid int4 DEFAULT '0' NOT NULL,
+ clock int4 DEFAULT '0' NOT NULL,
+ value_min float8 DEFAULT '0.0000' NOT NULL,
+ value_avg float8 DEFAULT '0.0000' NOT NULL,
+ value_max float8 DEFAULT '0.0000' NOT NULL,
+ PRIMARY KEY (itemid,clock),
+ FOREIGN KEY (itemid) REFERENCES items
+);
+
VACUUM ANALYZE;