IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19334 for trunk/ippTools/share


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.

Location:
trunk/ippTools/share
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r19325 r19334  
    1010     camtool_reset_faulted_runs.sql \
    1111     camtool_revertprocessedexp.sql \
     12     chiptool_change_exp_state.sql \
     13     chiptool_change_imfile_data_state.sql \
    1214     chiptool_completely_processed_exp.sql \
    1315     chiptool_donecleanup.sql \
  • trunk/ippTools/share/chiptool_pendingcleanupimfile.sql

    r18366 r19334  
    1414WHERE
    1515    chipRun.state = 'goto_cleaned'
     16    AND chipProcessedImfile.data_state = 'full'
  • 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')
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r19325 r19334  
    261261    exp_id BIGINT,
    262262    class_id VARCHAR(64),
     263    data_state VARCHAR(64),
    263264    uri VARCHAR(255),
    264265    bg FLOAT,
     
    289290    fault SMALLINT NOT NULL,
    290291    PRIMARY KEY(chip_id, exp_id, class_id),
     292    KEY(data_state),
    291293    KEY(fault),
    292294    FOREIGN KEY (chip_id, exp_id)
Note: See TracChangeset for help on using the changeset viewer.