IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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