diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-03-21 14:29:28 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-03-21 14:29:28 +0000 |
| commit | 2eb280db699731b6e13a9a03add4be88c54b7e6a (patch) | |
| tree | 8b3080ac40dc93e11a6f473871483b1b25a3f221 /create/postgresql/schema.sql | |
| parent | ccf82edc4a3c9c119d0207cfa4bdf2aa3c53462f (diff) | |
| download | zabbix-2eb280db699731b6e13a9a03add4be88c54b7e6a.tar.gz zabbix-2eb280db699731b6e13a9a03add4be88c54b7e6a.tar.xz zabbix-2eb280db699731b6e13a9a03add4be88c54b7e6a.zip | |
- added directory upgrades/dbpatches/1.0beta2_to_1.0beta3 (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@338 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/postgresql/schema.sql')
| -rw-r--r-- | create/postgresql/schema.sql | 12 |
1 files changed, 12 insertions, 0 deletions
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' |
