Changeset 175 for trunk


Ignore:
Timestamp:
03/01/05 11:49:46 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Updated SQL table definitions - pg_dump format

File:
1 edited

Legend:

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

    r92 r175  
    123123--
    124124
    125 CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.ptype, poolips.city, poolips.description FROM poolips;
     125CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, poolips.description FROM poolips;
    126126
    127127--
     
    169169        "ip" cidr DEFAULT '255.255.255.255/32' NOT NULL,
    170170        "custid" character varying(16) DEFAULT '' NOT NULL,
    171         "city" character varying(30) DEFAULT '',
    172         "ptype" character(1) DEFAULT 'c' NOT NULL,
    173         "available" character(1) DEFAULT 'y',
    174         "notes" text DEFAULT '',
    175         "description" character varying(64) DEFAULT '',
    176         "circuitid" character varying(128) DEFAULT '',
     171        "city" character varying(30) DEFAULT '' NOT NULL,
     172        "type" character(2) DEFAULT '' NOT NULL,
     173        "available" character(1) DEFAULT 'y' NOT NULL,
     174        "notes" text DEFAULT '' NOT NULL,
     175        "description" character varying(64) DEFAULT '' NOT NULL,
     176        "circuitid" character varying(128) DEFAULT '' NOT NULL,
     177        "newcustid" integer,
    177178        CHECK (((available = 'y'::bpchar) OR (available = 'n'::bpchar))),
    178179        Constraint "poolips_pkey" Primary Key ("ip")
     
    204205        "maskbits" integer DEFAULT 128,
    205206        "circuitid" character varying(128) DEFAULT '',
     207        "newcustid" integer,
    206208        Constraint "allocations_pkey" Primary Key ("cidr")
    207209);
     
    228230        "dispname" character varying(40) DEFAULT '',
    229231        "listorder" integer DEFAULT 0,
     232        "def_custid" character varying(16) DEFAULT '',
    230233        Constraint "alloctypes_pkey" Primary Key ("type")
    231234);
Note: See TracChangeset for help on using the changeset viewer.