Ignore:
Timestamp:
01/02/15 17:26:32 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Minimally update search tool for new database layout. Still needs a major rewrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/ipdb-2.7-3.0.sql

    r658 r670  
    3232-- probably need some more indexes
    3333
     34-- Need some additional fields to support search output.  Might arguably
     35-- move pool IPs into the allocations table;  we'll see.
     36DROP VIEW searchme;
     37CREATE 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
    3448-- Relabel a few types to match the new structure
    3549UPDATE alloctypes SET listname='Routing aggregation', dispname='Routing aggregation' WHERE type='rm';
Note: See TracChangeset for help on using the changeset viewer.