IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

File:
1 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'
Note: See TracChangeset for help on using the changeset viewer.