IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19620


Ignore:
Timestamp:
Sep 19, 2008, 2:10:32 PM (18 years ago)
Author:
eugene
Message:

adding ref_det_id, ref_iter to detRun and detResidImfile, modifying the foreign constraint

Location:
trunk/dbconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r19558 r19620  
    469469update fakeProcessedImfile set data_state ='full';
    470470
     471-- adding ref_det_id and ref_iter to detRun and detResidImfile
     472
     473ALTER TABLE detResidImfile add column ref_det_id bigint after iteration;
     474ALTER TABLE detResidImfile add column ref_iter int after iteration;
     475
     476ALTER TABLE detResidImfile add column ref_det_id bigint after iteration;
     477ALTER TABLE detResidImfile add column ref_iter int after iteration;
     478
     479ALTER TABLE detRun change column parent ref_det_id bigint;
     480ALTER TABLE detRun add column ref_iter int after ref_det_id;
     481
     482-- XXX need to change the foreign key constraints on detResidImfile:
     483-- This
     484--    FOREIGN KEY (det_id, iteration)
     485--    REFERENCES  detNormalizedExp(det_id, iteration)
     486-- Becomes:
     487--    FOREIGN KEY (ref_det_id, ref_iter)
     488--    REFERENCES  detNormalizedExp(det_id, iteration)
     489
     490-- XXX Need to population ref_det_id with the contents of det_id for detRun.mode == 'master'
  • trunk/dbconfig/det.md

    r19088 r19620  
    2828    solang_max  F32         0.0
    2929    label       STR         64      # key
    30     parent      S32         0       # Key
     30    ref_det_id  S64         0       # reference for 'verify' and 'correction' analysis
     31    ref_iter    S32         0       # reference for 'verify' and 'correction' analysis
    3132END
    3233
     
    165166    det_id      S64         0       # Primary Key fkey(det_id, iteration, exp_id) ref detInputExp(det_id, iteration, exp_id)
    166167    iteration   S32         0       # Primary Key fkey(det_id, exp_id, class_id) ref detProcessedImfile(det_id, exp_id, class_id)
    167     exp_id     S64         64       # Primary Key fkey(det_id, iteration) ref detNormalizedExp(det_id, iteration)
     168    ref_det_id  S64         0       # detrend master actually applied (same as above for 'master', but not for 'verify')
     169    ref_iter    S32         0       # detrend master actually applied (same as above for 'master', but not for 'verify')
     170    exp_id      S64         64      # Primary Key fkey(det_id, iteration) ref detNormalizedExp(det_id, iteration)
    168171    class_id    STR         64      # Primary Key INDEX(det_id, iteration, exp_id)
    169172    uri         STR         255
Note: See TracChangeset for help on using the changeset viewer.