Changeset 762 for trunk/cgi-bin
- Timestamp:
- 07/29/15 13:10:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb-2.7-3.0.sql
r691 r762 5 5 -- has run, IPDB v2.7 and older will NOT be able to properly manipulate 6 6 -- the data! 7 8 -- Flag table for deciding if we can usefully do rDNS RPC calls. 9 CREATE TABLE dnsavail ( 10 "zone" cidr PRIMARY KEY, 11 "location" varchar(2) DEFAULT '', 12 parent_alloc integer NOT NULL 13 ); 7 14 8 15 -- Master and routed blocks now live in the allocations table. … … 15 22 ALTER TABLE allocations DROP CONSTRAINT allocations_pkey; 16 23 ALTER TABLE allocations ADD COLUMN id serial PRIMARY KEY; 24 CREATE UNIQUE INDEX allocations_skey ON allocations (cidr,vrf,type); 17 25 18 26 ALTER TABLE freeblocks ADD COLUMN vrf text NOT NULL DEFAULT ''; 19 27 ALTER TABLE freeblocks ADD COLUMN parent_id integer NOT NULL DEFAULT 0; 20 28 ALTER TABLE freeblocks ADD COLUMN master_id integer NOT NULL DEFAULT 0; 29 ALTER TABLE freeblocks ADD COLUMN reserve_for integer NOT NULL DEFAULT 0; 21 30 ALTER TABLE freeblocks DROP CONSTRAINT freeblocks_pkey; 22 31 ALTER TABLE freeblocks ADD CONSTRAINT freeblocks_pkey PRIMARY KEY ("cidr","parent_id");
Note:
See TracChangeset
for help on using the changeset viewer.