Ignore:
Timestamp:
04/27/18 15:28:45 (7 years ago)
Author:
Kris Deugau
Message:

/trunk

Start adding a generalized in-your-face infonotice space to attach warnings
to a netblock. See #17 and #23, sort of.

  • table to hold the notices, since they're likely to be far fewer than the overall allocation count
  • show any notices for the parent chain for new allocations in the admin tools
File:
1 edited

Legend:

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

    r865 r915  
    116116ALTER TABLE ONLY freeblocks
    117117    ADD CONSTRAINT freeblocks_pkey PRIMARY KEY (cidr, parent_id);
     118
     119-- Table for arbitrary infonotices tagged to an allocation
     120CREATE TABLE blocknotices (
     121    alloc_id integer NOT NULL,
     122    ipflag boolean DEFAULT false NOT NULL,
     123    notice text DEFAULT ''::text NOT NULL
     124);
     125
     126ALTER TABLE ONLY blocknotices
     127    ADD CONSTRAINT blocknotices_pkey PRIMARY KEY (alloc_id, ipflag);
    118128
    119129-- Network nodes - allows finding customers affected by a broken <x> quickly
Note: See TracChangeset for help on using the changeset viewer.