Changeset 864
- Timestamp:
- 04/29/16 13:25:18 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb.psql
r807 r864 9 9 location varchar(4) DEFAULT '' NOT NULL 10 10 ); 11 12 COPY vrfs (vrf, comment, location) FROM stdin; 13 DEFAULT Initial default VRF 14 \. 11 15 12 16 ALTER TABLE ONLY vrfs … … 34 38 parent_id integer DEFAULT 0 NOT NULL, 35 39 master_id integer DEFAULT 0 NOT NULL, 40 backup_id integer DEFAULT 0 NOT NULL, 36 41 id serial NOT NULL 37 42 ); … … 75 80 CREATE TABLE dnsavail ( 76 81 "zone" cidr PRIMARY KEY, 77 "location" varchar( 2) DEFAULT '',82 "location" varchar(4) DEFAULT '', 78 83 parent_alloc integer NOT NULL 84 ); 85 86 -- Store backup fields in a separate table 87 CREATE TABLE backuplist ( 88 backup_id serial NOT NULL, 89 bkbrand text, 90 bkmodel text, 91 bktype text, 92 bkport integer, 93 bksrc text, 94 bkuser text, 95 bkvpass text, 96 bkepass text, 97 bkip inet 79 98 ); 80 99 … … 136 155 parent_id integer DEFAULT 0 NOT NULL, 137 156 master_id integer DEFAULT 0 NOT NULL, 157 backup_id integer DEFAULT 0 NOT NULL, 138 158 id serial NOT NULL, 139 159 CONSTRAINT poolips_available_check CHECK (((available = 'y'::bpchar) OR (available = 'n'::bpchar))) … … 148 168 SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, 149 169 allocations.description, allocations.notes, allocations.circuitid, allocations.vrf, 150 allocations.vlan, allocations.id, allocations.parent_id, 'n' AS available170 allocations.vlan, allocations.id, allocations.parent_id, allocations.master_id, 'n' AS available 151 171 FROM allocations 152 172 UNION 153 173 SELECT poolips.ip AS cidr, poolips.custid, poolips."type", poolips.city, 154 174 poolips.description, poolips.notes, poolips.circuitid, poolips.vrf, 155 poolips.vlan, poolips.id, poolips.parent_id, poolips. available175 poolips.vlan, poolips.id, poolips.parent_id, poolips.master_id, poolips.available 156 176 FROM poolips; 157 177
Note:
See TracChangeset
for help on using the changeset viewer.