IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 19, 2010, 11:32:49 AM (16 years ago)
Author:
bills
Message:

Don't set run to update unless it has never been magicked or if the
magicDSFile has been cleaned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/difftool_setskyfiletoupdate.sql

    r27794 r28022  
    11UPDATE diffRun
    22    JOIN diffSkyfile USING(diff_id)
     3    LEFT JOIN magicDSRun ON (stage_id = diff_id AND stage = 'diff')
     4    LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     5                              AND component = skycell_id)
    36SET diffRun.state = 'update',
    47    diffSkyfile.data_state = 'update'
     
    710    AND (diffRun.state = 'cleaned' OR diffRun.state = 'update')
    811    AND (diffSkyfile.data_state = 'cleaned')
     12    -- don't queue update if the associated magicDSFile still exists
     13    AND (diffRun.magicked = 0
     14      OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
     15            AND magicDSFile.component IS NULL)
Note: See TracChangeset for help on using the changeset viewer.