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/warptool_setskyfiletoupdate.sql

    r27737 r28022  
    11UPDATE warpRun
    22    JOIN warpSkyfile USING(warp_id)
     3    LEFT JOIN magicDSRun ON (stage_id = warp_id AND stage = 'warp')
     4    LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     5                              AND component = skycell_id)
    36SET warpRun.state = 'update',
    47    warpSkyfile.data_state = 'update'
     
    710    AND (warpRun.state = 'cleaned' OR warpRun.state = 'update')
    811    AND (warpSkyfile.data_state = 'cleaned')
     12    AND (warpRun.magicked = 0
     13      OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
     14      AND magicDSFile.component IS NULL)
Note: See TracChangeset for help on using the changeset viewer.