Changeset 691 for trunk/cgi-bin/ipdb-2.7-3.0.sql
- Timestamp:
- 02/06/15 17:42:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb-2.7-3.0.sql
r670 r691 9 9 10 10 ALTER TABLE allocations ADD COLUMN vrf text NOT NULL DEFAULT ''; 11 ALTER TABLE allocations ADD COLUMN vlan text NOT NULL DEFAULT ''; 11 12 ALTER TABLE allocations ADD COLUMN rdns text NOT NULL DEFAULT ''; 12 13 ALTER TABLE allocations ADD COLUMN parent_id integer NOT NULL DEFAULT 0; … … 23 24 24 25 ALTER TABLE poolips ADD COLUMN vrf text NOT NULL DEFAULT ''; 26 ALTER TABLE poolips ADD COLUMN vlan text NOT NULL DEFAULT ''; 25 27 ALTER TABLE poolips ADD COLUMN rdns text NOT NULL DEFAULT ''; 26 28 ALTER TABLE poolips ADD COLUMN parent_id integer NOT NULL DEFAULT 0; … … 37 39 CREATE VIEW "searchme" AS 38 40 SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, 39 allocations.description, allocations.notes, allocations.circuitid, allocations. id,40 allocations. parent_id, 'n' AS available41 allocations.description, allocations.notes, allocations.circuitid, allocations.vrf, 42 allocations.vlan, allocations.id, allocations.parent_id, 'n' AS available 41 43 FROM allocations 42 44 UNION 43 45 SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, 44 poolips.description, poolips.notes, poolips.circuitid, poolips. id,45 poolips. parent_id, poolips.available46 poolips.description, poolips.notes, poolips.circuitid, poolips.vrf, 47 poolips.vlan, poolips.id, poolips.parent_id, poolips.available 46 48 FROM poolips; 47 49
Note:
See TracChangeset
for help on using the changeset viewer.