Ignore:
Timestamp:
07/30/10 15:40:36 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Remove reference to legacy oldcustid field - leftovers from a
billing system transition. See #26.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/ipdb.psql

    r417 r455  
    7676        "pool" cidr DEFAULT '255.255.255.255/32' NOT NULL,
    7777        "ip" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY,
    78         "oldcustid" character varying(16) DEFAULT '' NOT NULL,
    7978        "city" character varying(30) DEFAULT '' NOT NULL,
    8079        "type" character(2) DEFAULT '' NOT NULL,
     
    9594CREATE TABLE "allocations" (
    9695        "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY,
    97         "oldcustid" character varying(16) DEFAULT '',
    9896        "type" character(2) DEFAULT '',
    9997        "city" character varying(30) DEFAULT '',
     
    112110GRANT ALL on "allocations" to "ipdb";
    113111
    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;
     112CREATE 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;
    115113
    116114REVOKE ALL on "searchme" from PUBLIC;
Note: See TracChangeset for help on using the changeset viewer.