Changeset 1234


Ignore:
Timestamp:
12/18/06 13:01:42 (6 years ago)
Author:
mglb1
Message:

Fix bugs in the available host asset view

  • Don't include NULL asset_id's in the subselect results or none of the available assets at the site will be matched
  • Restrict the returned results to host assets ONLY, otherwise anything in site_assets will be returned, including wireless cards, etc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccsd/trunk/dbschema/ccs.schema

    r1228 r1234  
    10451045 
    10461046-- List of assets available for use as a new host at a site 
    1047 CREATE VIEW site_host_assets_avail AS SELECT * FROM site_assets sa WHERE 
     1047CREATE VIEW site_host_assets_avail AS SELECT sa.* FROM site_assets sa, asset a, 
     1048    asset_type_map atm WHERE sa.asset_id=a.asset_id AND  
     1049    a.asset_type_id=atm.asset_type_id AND atm.asset_function='host' AND 
    10481050    sa.asset_id NOT IN (SELECT asset_id FROM site_hosts WHERE  
    1049     site_id=sa.site_id); 
     1051    asset_id IS NOT NULL AND site_id=sa.site_id); 
    10501052 
    10511053-- List of interface subassets available for use on a host 
Note: See TracChangeset for help on using the changeset viewer.