summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-07-03 06:07:26 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-07-03 06:07:26 +0000
commit2c88dcbac3de23650e7fccaa91f003e9ae54550d (patch)
tree60f3f30933c79818480ae06b58f0e9b02c2317f0 /create/postgresql/schema.sql
parente8371e423287f73f1ad30bc35a25bce761a0d27b (diff)
downloadzabbix-2c88dcbac3de23650e7fccaa91f003e9ae54550d.tar.gz
zabbix-2c88dcbac3de23650e7fccaa91f003e9ae54550d.tar.xz
zabbix-2c88dcbac3de23650e7fccaa91f003e9ae54550d.zip
Patches for alpha6->alpha7. Fixed bug with lost status of trigger.
git-svn-id: svn://svn.zabbix.com/trunk@122 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql30
1 files changed, 15 insertions, 15 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index c002a55b..366e4dd6 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -241,21 +241,6 @@ CREATE UNIQUE INDEX sysmaps_name on sysmaps (name);
-- Table structure for table 'sysmaps_hosts'
--
-CREATE TABLE sysmaps_links (
- linkid serial,
- sysmapid int4 DEFAULT '0' NOT NULL,
- shostid1 int4 DEFAULT '0' NOT NULL,
- shostid2 int4 DEFAULT '0' NOT NULL,
- PRIMARY KEY (linkid),
- FOREIGN KEY (sysmapid) REFERENCES sysmaps,
- 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,
@@ -269,6 +254,21 @@ CREATE TABLE sysmaps_hosts (
);
--
+-- Table structure for table 'sysmaps_links'
+--
+
+CREATE TABLE sysmaps_links (
+ linkid serial,
+ sysmapid int4 DEFAULT '0' NOT NULL,
+ shostid1 int4 DEFAULT '0' NOT NULL,
+ shostid2 int4 DEFAULT '0' NOT NULL,
+ PRIMARY KEY (linkid),
+ FOREIGN KEY (sysmapid) REFERENCES sysmaps,
+ FOREIGN KEY (shostid1) REFERENCES sysmaps_hosts,
+ FOREIGN KEY (shostid2) REFERENCES sysmaps_hosts
+);
+
+--
-- Table structure for table 'graphs'
--