summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-14 13:30:35 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-14 13:30:35 +0000
commitaadd81c310474f516eec3e9f7f3ce0546623510d (patch)
treecdaf3e3492f6006d2c4c193e8766fc3585843aab /create/postgresql/schema.sql
parent1f55e93a9480401dd9ec96ecdd43d2b22106770b (diff)
downloadzabbix-aadd81c310474f516eec3e9f7f3ce0546623510d.tar.gz
zabbix-aadd81c310474f516eec3e9f7f3ce0546623510d.tar.xz
zabbix-aadd81c310474f516eec3e9f7f3ce0546623510d.zip
- added table history_uint (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2313 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 4d4d915b..ab05ea70 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -324,6 +324,20 @@ CREATE TABLE history (
CREATE INDEX history_i_c on history (itemid, clock);
--
+-- Table structure for table 'history_uint'
+--
+
+CREATE TABLE history_uint (
+ itemid int4 DEFAULT '0' NOT NULL,
+ clock int4 DEFAULT '0' NOT NULL,
+ value double precision DEFAULT '0' NOT NULL,
+-- PRIMARY KEY (itemid,clock),
+ FOREIGN KEY (itemid) REFERENCES items
+);
+
+CREATE INDEX history_uint_i_c on history_uint (itemid, clock);
+
+--
-- Table structure for table 'history_str'
--