IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2008, 2:05:26 PM (18 years ago)
Author:
bills
Message:

Add modes for transitioning chipProcessedImfiles from full to cleaned
and cleaned to full and full to purged.
Added COLUMN data_state to chipProcessedImfile to record the state.

File:
1 edited

Legend:

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

    r19181 r19334  
    2020    ON chipRun.label = chipMask.label
    2121WHERE
    22     chipRun.state = 'new'
     22    (chipRun.state = 'new'
    2323    AND chipProcessedImfile.chip_id IS NULL
    2424    AND chipProcessedImfile.exp_id IS NULL
    2525    AND chipProcessedImfile.class_id IS NULL
    26     AND chipMask.label IS NULL
    27 
    28 -- new where logic for update.  we probably need to add a 'data_state'
    29 -- field to chipProcessedImfile and update it (full, cleaned, etc) as
    30 -- we cleanup or update
    31 --    (chipRun.state = 'new'
    32 --    AND chipProcessedImfile.chip_id IS NULL
    33 --    AND chipProcessedImfile.exp_id IS NULL
    34 --    AND chipProcessedImfile.class_id IS NULL
    35 --    AND chipMask.label IS NULL)
    36 --    OR
    37 --    (chipRun.state = 'update'
    38 --    AND chipProcessedImfile.data_state = 'cleaned'
     26    AND chipMask.label IS NULL)
     27    OR
     28    (chipRun.state = 'update'
     29    AND chipProcessedImfile.data_state = 'cleaned')
Note: See TracChangeset for help on using the changeset viewer.