diff options
Diffstat (limited to 'create/postgresql/schema.sql')
| -rw-r--r-- | create/postgresql/schema.sql | 30 |
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' -- |
