Changeset 807 for trunk/cgi-bin


Ignore:
Timestamp:
03/08/16 13:05:06 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Roll up SQL definition updates

  • extend length of description field on allocations and poolips
  • create VRF table
Location:
trunk/cgi-bin
Files:
2 edited

Legend:

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

    r794 r807  
    2626    bkip inet
    2727);
     28
     29-- VRFs are now the apex entity
     30CREATE TABLE vrfs (
     31    vrf varchar(32) DEFAULT '' NOT NULL,
     32    comment text DEFAULT '' NOT NULL,
     33    location varchar(4) DEFAULT '' NOT NULL
     34);
     35
     36ALTER TABLE ONLY vrfs
     37    ADD CONSTRAINT vrfs_pkey PRIMARY KEY (vrf);
     38
     39-- need a default VRF to stuff everything into to start with
     40INSERT INTO vrfs (vrf,comment) VALUES ('DEFAULT','Initial default VRF');
    2841
    2942-- Master and routed blocks now live in the allocations table.
  • trunk/cgi-bin/ipdb.psql

    r804 r807  
    2020    "type" character(2) DEFAULT ''::bpchar,
    2121    city character varying(30) DEFAULT ''::character varying,
    22     description character varying(64) DEFAULT ''::character varying,
     22    description character varying(128) DEFAULT ''::character varying,
    2323    notes text DEFAULT ''::text,
    2424    maskbits integer DEFAULT 128,
     
    125125    available character(1) DEFAULT 'y'::bpchar NOT NULL,
    126126    notes text DEFAULT ''::text NOT NULL,
    127     description character varying(64) DEFAULT ''::character varying NOT NULL,
     127    description character varying(128) DEFAULT ''::character varying NOT NULL,
    128128    circuitid character varying(128) DEFAULT ''::character varying NOT NULL,
    129129    privdata text DEFAULT ''::text NOT NULL,
Note: See TracChangeset for help on using the changeset viewer.