From 2eb280db699731b6e13a9a03add4be88c54b7e6a Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 21 Mar 2002 14:29:28 +0000 Subject: - added directory upgrades/dbpatches/1.0beta2_to_1.0beta3 (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@338 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- create/postgresql/schema.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'create/postgresql/schema.sql') diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql index de224e93..51ea19ce 100644 --- a/create/postgresql/schema.sql +++ b/create/postgresql/schema.sql @@ -24,6 +24,7 @@ CREATE INDEX hosts_status on hosts (status); CREATE TABLE items ( itemid serial, type int4 NOT NULL, + value_type int4 DEFAULT '0' NOT NULL, snmp_community varchar(64) DEFAULT '' NOT NULL, snmp_oid varchar(255) DEFAULT '' NOT NULL, hostid int4 NOT NULL, @@ -202,6 +203,17 @@ CREATE TABLE history ( FOREIGN KEY (itemid) REFERENCES items ); +-- +-- Table structure for table 'history_str' +-- + +CREATE TABLE history_str ( + itemid int4 DEFAULT '0' NOT NULL, + clock int4 DEFAULT '0' NOT NULL, + value varchar(255) DEFAULT '' NOT NULL, + PRIMARY KEY (itemid,clock), + FOREIGN KEY (itemid) REFERENCES items +); -- -- Table structure for table 'items_template' -- cgit