IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19323


Ignore:
Timestamp:
Sep 2, 2008, 9:23:35 AM (18 years ago)
Author:
eugene
Message:

mods to flatcorr tables: adding flatcorrCamLink, dropping flatcorrExp and replacing with flatcorrChipLink; adding reduction to flatcorrRun

Location:
trunk/dbconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r19112 r19323  
    394394
    395395alter table stackRun add column filter varchar(64) after tess_id;
     396
     397--
     398
     399delete from flatcorrExp;
     400
     401delete from flatcorrRun;
     402alter table flatcorrRun add column reduction varchar(255) after stats;
     403
     404drop table flatcorrExp;
     405
     406CREATE TABLE flatcorrChipLink (
     407        corr_id BIGINT,
     408        chip_id BIGINT,
     409        PRIMARY KEY(corr_id, chip_id),
     410        FOREIGN KEY (corr_id)  REFERENCES  flatcorrRun(corr_id),
     411        FOREIGN KEY (chip_id)  REFERENCES  chipRun(chip_id)
     412) ENGINE=innodb DEFAULT CHARSET=latin1;
     413
     414CREATE TABLE flatcorrCamLink (
     415        corr_id BIGINT,
     416        chip_id BIGINT,
     417        cam_id BIGINT,
     418        PRIMARY KEY(corr_id, chip_id, cam_id),
     419        FOREIGN KEY (corr_id)  REFERENCES  flatcorrRun(corr_id),
     420        FOREIGN KEY (chip_id)  REFERENCES  chipRun(chip_id)
     421        FOREIGN KEY (cam_id)  REFERENCES  camRun(cam_id)
     422) ENGINE=innodb DEFAULT CHARSET=latin1;
     423
     424-- ALTER TABLE flatcorrCamLink ADD COLUMN chip_id BIGINT AFTER corr_id;
  • trunk/dbconfig/flatcorr.md

    r16671 r19323  
    99    label       STR         64
    1010    stats       STR         255
     11    reduction   STR         255
    1112    region      STR         255
    1213END
    1314
    1415# table of Exposure-level data used for each flat-field corrction run
    15 flatcorrExp METADATA
     16flatcorrChipLink METADATA
    1617    corr_id     S64         0       # Primary Key fkey(corr_id) ref flatcorrRun(corr_id)
    17     chip_id     S64         64      # Primary Key fkey(chip_id) ref chipRun(chip_id)
     18    chip_id     S64         0       # Primary Key fkey(chip_id) ref chipRun(chip_id)
    1819END
    1920
     21# table of Exposure-level data used for each flat-field corrction run
     22flatcorrCamLink METADATA
     23    corr_id     S64         0       # Primary Key fkey(corr_id) ref flatcorrRun(corr_id)
     24    chip_id     S64         0       # Primary Key fkey(chip_id) ref chipRun(chip_id)
     25    cam_id      S64         0       # Primary Key fkey(chip_id) ref chipRun(chip_id)
     26END
     27
Note: See TracChangeset for help on using the changeset viewer.