summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-06-09 13:04:44 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-06-09 13:04:44 +0000
commit15f33d0a3cf634aeac1827bf2bc26ae7a8430d5f (patch)
treeab2a41f8730ce1165e9bb9660c1d1fa797042713 /create/postgresql/schema.sql
parentf22d383e067e08dd75e8bd5ef84e17540c97dd72 (diff)
downloadzabbix-15f33d0a3cf634aeac1827bf2bc26ae7a8430d5f.tar.gz
zabbix-15f33d0a3cf634aeac1827bf2bc26ae7a8430d5f.tar.xz
zabbix-15f33d0a3cf634aeac1827bf2bc26ae7a8430d5f.zip
- added table 'stats' (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@810 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 45d1122d..f17c989a 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -503,4 +503,18 @@ CREATE TABLE screens_items (
PRIMARY KEY (screenitemid)
);
+--
+-- Table structure for table 'stats'
+--
+
+CREATE TABLE stats (
+ itemid int4 DEFAULT '0' NOT NULL,
+ year int4 DEFAULT '0' NOT NULL,
+ month int4 DEFAULT '0' NOT NULL,
+ day int4 DEFAULT '0' NOT NULL,
+ hour int4 DEFAULT '0' NOT NULL,
+ value float8 DEFAULT '0.0000' NOT NULL,
+ PRIMARY KEY (itemid,year,month,day,hour),
+);
+
VACUUM ANALYZE;