IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 10:05:10 AM (15 years ago)
Author:
eugene
Message:

merging updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/dbconfig/changes.txt

    r31038 r31439  
    20572057
    20582058UPDATE dbversion set schema_version = '1.1.69', updated= CURRENT_TIMESTAMP();
    2059 
    2060 
    2061 
     2059ALTER TABLE addRun ADD COLUMN stage VARCHAR(64) AFTER add_id;
     2060ALTER TABLE addRun ADD COLUMN stage_id bigint(20) after stage;
     2061UPDATE addRun set stage_id = cam_id;
     2062
     2063-- these next steps I don't know if it's generic or not. This is how to drop
     2064   the cam_id table in addRun for gpc1
     2065
     2066show create table addRun;
     2067alter table `addRun` drop foreign key `addRun_ibfk_1`, drop column cam_id;
     2068
     2069-- this sets the addRun stage for all the old addRuns to 'cam'
     2070
     2071
     2072--do this update only once, so I'm commenting it out (it's been done)
     2073-- update addRun set stage = 'cam';
     2074
     2075
     2076-- Version 1.1.70
     2077
     2078CREATE TABLE lapSequence (
     2079    seq_id BIGINT AUTO_INCREMENT, -- Identifier for the processing sequence
     2080    name VARCHAR(64) NOT NULL,    -- short name of the sequence
     2081    description VARCHAR(255) NOT NULL, -- longer description of the sequence
     2082    PRIMARY KEY(seq_id),
     2083    KEY(name)
     2084) ENGINE=innodb DEFAULT CHARSET=latin1;
     2085
     2086CREATE TABLE lapRun (
     2087    lap_id BIGINT AUTO_INCREMENT, -- Identifier for the processing run
     2088    seq_id BIGINT NOT NULL,       -- Identifier to match to the sequence
     2089    tess_id VARCHAR(64) NOT NULL, -- tessellation id to use
     2090    projection_cell VARCHAR(64) NOT NULL, -- projection cell from the tessellation to consider
     2091    filter VARCHAR(64) NOT NULL,  -- filter
     2092    state VARCHAR(64) NOT NULL,   -- state of run
     2093    label VARCHAR(64) NOT NULL,   -- processing label
     2094    dist_group VARCHAR(64) NOT NULL, -- distribution group for products of this run
     2095    registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     2096    fault SMALLINT NOT NULL,      -- fault code
     2097    quick_sass_id BIGINT,         -- stackAssociation id for quick stack
     2098    final_sass_id BIGINT,         -- stackAssociation id for final stack
     2099    PRIMARY KEY(lap_id),
     2100    KEY(seq_id),
     2101    KEY(projection_cell),
     2102    KEY(filter),
     2103    KEY(state),
     2104    KEY(label),
     2105    KEY(fault),
     2106    FOREIGN KEY(seq_id) REFERENCES lapSequence(seq_id),
     2107    FOREIGN KEY(quick_sass_id) REFERENCES stackAssociation(sass_id),
     2108    FOREIGN KEY(final_sass_id) REFERENCES stackAssociation(sass_id)
     2109) ENGINE=innodb DEFAULT CHARSET=latin1;
     2110
     2111CREATE TABLE lapExp (
     2112    lap_id BIGINT NOT NULL, -- Link back to processing run
     2113    exp_id BIGINT NOT NULL, -- exposure definition
     2114    chip_id BIGINT,         -- processing id from chipRun
     2115    pair_id BIGINT,         -- companion chip_id
     2116    private TINYINT DEFAULT 0, -- denotes this exposure is private
     2117    pairwise TINYINT DEFAULT 0, -- denotes if this exposure should be pairwise diffed
     2118    active TINYINT DEFAULT 0, -- denotes if this exposure is currently in use
     2119    data_state VARCHAR(64) NOT NULL, -- state of exposure
     2120    PRIMARY KEY (lap_id,exp_id),
     2121    KEY (lap_id),
     2122    KEY (exp_id),
     2123    KEY (chip_id),
     2124    KEY (pair_id),
     2125    KEY (data_state),
     2126    FOREIGN KEY (lap_id) REFERENCES lapRun(lap_id),
     2127    FOREIGN KEY (exp_id) REFERENCES rawExp(exp_id),
     2128    FOREIGN KEY (chip_id,exp_id) REFERENCES chipRun(chip_id,exp_id),
     2129    FOREIGN KEY (pair_id) REFERENCES chipRun(chip_id)
     2130) ENGINE=innodb DEFAULT CHARSET=latin1;
     2131
     2132UPDATE dbversion set schema_version = '1.1.70', updated= CURRENT_TIMESTAMP();
     2133
Note: See TracChangeset for help on using the changeset viewer.