Changeset 779 for trunk/cgi-bin
- Timestamp:
- 10/07/15 17:58:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb-2.7-3.0.sql
r762 r779 13 13 ); 14 14 15 -- Store backup fields in a separate table 16 CREATE TABLE backuplist ( 17 backup_id serial NOT NULL, 18 bkbrand text, 19 bkmodel text, 20 bktype text, 21 bkport integer, 22 bksrc text, 23 bkuser text, 24 bkvpass text, 25 bkepass text, 26 ip inet 27 ); 28 15 29 -- Master and routed blocks now live in the allocations table. 16 30 … … 20 34 ALTER TABLE allocations ADD COLUMN parent_id integer NOT NULL DEFAULT 0; 21 35 ALTER TABLE allocations ADD COLUMN master_id integer NOT NULL DEFAULT 0; 36 ALTER TABLE allocations ADD COLUMN backup_id integer NOT NULL DEFAULT 0; 22 37 ALTER TABLE allocations DROP CONSTRAINT allocations_pkey; 23 38 ALTER TABLE allocations ADD COLUMN id serial PRIMARY KEY; 39 -- not certain this is right 24 40 CREATE UNIQUE INDEX allocations_skey ON allocations (cidr,vrf,type); 25 41 … … 37 53 ALTER TABLE poolips ADD COLUMN parent_id integer NOT NULL DEFAULT 0; 38 54 ALTER TABLE poolips ADD COLUMN master_id integer NOT NULL DEFAULT 0; 55 ALTER TABLE poolips ADD COLUMN backup_id integer NOT NULL DEFAULT 0; 39 56 ALTER TABLE poolips DROP CONSTRAINT poolips_pkey; 40 57 ALTER TABLE poolips ADD COLUMN id serial;
Note:
See TracChangeset
for help on using the changeset viewer.