Changeset 455 for trunk/cgi-bin/ipdb.psql
- Timestamp:
- 07/30/10 15:40:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb.psql
r417 r455 76 76 "pool" cidr DEFAULT '255.255.255.255/32' NOT NULL, 77 77 "ip" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY, 78 "oldcustid" character varying(16) DEFAULT '' NOT NULL,79 78 "city" character varying(30) DEFAULT '' NOT NULL, 80 79 "type" character(2) DEFAULT '' NOT NULL, … … 95 94 CREATE TABLE "allocations" ( 96 95 "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY, 97 "oldcustid" character varying(16) DEFAULT '',98 96 "type" character(2) DEFAULT '', 99 97 "city" character varying(30) DEFAULT '', … … 112 110 GRANT ALL on "allocations" to "ipdb"; 113 111 114 CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description, allocations.notes, allocations. oldcustid, allocations.circuitid FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, poolips.description, poolips.notes, poolips.oldcustid, poolips.circuitid FROM poolips;112 CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description, allocations.notes, allocations.circuitid FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, poolips.description, poolips.notes, poolips.circuitid FROM poolips; 115 113 116 114 REVOKE ALL on "searchme" from PUBLIC;
Note:
See TracChangeset
for help on using the changeset viewer.