summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-07-01 11:34:17 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-07-01 11:34:17 +0000
commit9914a035650ffb324655e1187f1bc822e4823b64 (patch)
treed4c7a0010dbc0c8af22a9a49ab28da6720559387 /create/postgresql/schema.sql
parentd1f643e5097215db8c0e4ac0ba472b5ebc6ba945 (diff)
downloadzabbix-9914a035650ffb324655e1187f1bc822e4823b64.tar.gz
zabbix-9914a035650ffb324655e1187f1bc822e4823b64.tar.xz
zabbix-9914a035650ffb324655e1187f1bc822e4823b64.zip
Hosts displayed in network maps became clickable.
git-svn-id: svn://svn.zabbix.com/trunk@118 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql20
1 files changed, 18 insertions, 2 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 26a2d46b..c002a55b 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -248,8 +248,24 @@ CREATE TABLE sysmaps_links (
shostid2 int4 DEFAULT '0' NOT NULL,
PRIMARY KEY (linkid),
FOREIGN KEY (sysmapid) REFERENCES sysmaps,
- FOREIGN KEY (shostid1) REFERENCES items,
- FOREIGN KEY (shostid2) REFERENCES items
+ FOREIGN KEY (shostid1) REFERENCES sysmaps_hosts,
+ FOREIGN KEY (shostid2) REFERENCES sysmaps_hosts
+);
+
+--
+-- Table structure for table 'sysmaps_hosts'
+--
+
+CREATE TABLE sysmaps_hosts (
+ shostid serial,
+ sysmapid int4 DEFAULT '0' NOT NULL,
+ hostid int4 DEFAULT '0' NOT NULL,
+ label varchar(128) DEFAULT '' NOT NULL,
+ x int4 DEFAULT '0' NOT NULL,
+ y int4 DEFAULT '0' NOT NULL,
+ PRIMARY KEY (shostid),
+ FOREIGN KEY (sysmapid) REFERENCES sysmaps,
+ FOREIGN KEY (hostid) REFERENCES hosts
);
--