Changeset 670 for trunk/cgi-bin/ipdb-2.7-3.0.sql
- Timestamp:
- 01/02/15 17:26:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb-2.7-3.0.sql
r658 r670 32 32 -- probably need some more indexes 33 33 34 -- Need some additional fields to support search output. Might arguably 35 -- move pool IPs into the allocations table; we'll see. 36 DROP VIEW searchme; 37 CREATE VIEW "searchme" AS 38 SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, 39 allocations.description, allocations.notes, allocations.circuitid, allocations.id, 40 allocations.parent_id, 'n' AS available 41 FROM allocations 42 UNION 43 SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, 44 poolips.description, poolips.notes, poolips.circuitid, poolips.id, 45 poolips.parent_id, poolips.available 46 FROM poolips; 47 34 48 -- Relabel a few types to match the new structure 35 49 UPDATE alloctypes SET listname='Routing aggregation', dispname='Routing aggregation' WHERE type='rm';
Note:
See TracChangeset
for help on using the changeset viewer.