IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35048 for trunk/ippTools/share


Ignore:
Timestamp:
Jan 24, 2013, 4:54:58 PM (13 years ago)
Author:
bills
Message:

define relStack table
add ippRelease.priority
Change ippRelease.state to ippRelease.release_state

Location:
trunk/ippTools/share
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r34912 r35048  
    21612161    surveyID    INT(8),
    21622162    releaseName VARCHAR(64),
    2163     state       VARCHAR(16),    -- active, pending archive drop
     2163    relase_state VARCHAR(16),   -- active, pending, archive, drop
    21642164    dataRelease INT(8),         -- PSPS dataRelease
     2165    priority    INT(8),
    21652166    PRIMARY KEY(rel_id),
    21662167    KEY(releaseName),
    21672168    KEY(state),
     2169    KEY(priority),
    21682170    FOREIGN KEY(surveyID) REFERENCES survey(surveyID)
    21692171) ENGINE=Innodb DEFAULT CHARSET=latin1;
     
    21912193) ENGINE=innodb DEFAULT CHARSET=latin1;
    21922194
    2193 
    2194 -- This comment line is here to avoid empty query error.
     2195CREATE TABLE relStack (
     2196    relstack_id BIGINT AUTO_INCREMENT,
     2197    rel_id      INT(8),
     2198    skycal_id   BIGINT,         -- id of the sky calibration run that supplied the calibration
     2199                                -- for this release. We get back to stack from here
     2200    skycell_id  varchar(64),
     2201    tess_id     varchar(64),
     2202    state       VARCHAR(16),    -- released, pending, archive, drop 
     2203    flags       INT UNSIGNED,
     2204    stack_type  VARCHAR(16),    -- nightly, deep, reference
     2205    zpt_obs     FLOAT,          -- calibrated zero point for this release of this skycell
     2206    zpt_stdev   FLOAT,
     2207    fwhm_major  FLOAT,          -- seeing as measured by staticsky
     2208    path_base   VARCHAR(255),   -- path_base of any supporting files,
     2209    registered  DATETIME,
     2210    time_stamp  DATETIME,
     2211    PRIMARY KEY (relstack_id),
     2212    KEY (tess_id, skycell_id),
     2213    KEY (rel_id, tess_id, skycell_id),
     2214    FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id),
     2215    FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id)
     2216) ENGINE=innodb DEFAULT CHARSET=latin1;
     2217
     2218
     2219
     2220-- These comment lines are here to avoid an empty query error.
    21952221-- Another way to avoid that problem is to omit the semicolon above but I think that is untidy.
  • trunk/ippTools/share/releasetool_listrelexp.sql

    r35041 r35048  
    11SELECT
    22    relexp_id,
    3     releaseName,
    43    relExp.state,
    5     rel_id,
     4    ippRelease.releaseName,
     5    ippRelease.release_state,
     6    ippRelease.rel_id,
     7    ippRelease.priority,
    68    survey.surveyName,
    7     exp_name,
     9    rawExp.exp_name,
    810    relExp.flags,
    911    relExp.zpt_obs,
     
    1214    relExp.registered,
    1315    relExp.time_stamp,
    14     exp_id,
    15     chip_id,
     16    relExp.exp_id,
     17    relExp.chip_id,
    1618    chipRun.state as chip_state,
    17     cam_id,
     19    relExp.cam_id,
    1820    camRun.state as cam_state,
    1921    camProcessedExp.path_base as cam_path_base,
    2022    camProcessedExp.fwhm_major,
    21     warp_id,
     23    warpRun.warp_id,
    2224    warpRun.state as warp_state,
    2325    rawExp.filter,
     
    2527    TRUNCATE(DEGREES(rawExp.ra), 4) AS radeg,
    2628    TRUNCATE(DEGREES(rawExp.decl), 4) AS decdeg,
    27     rawExp.object,
    2829    rawExp.comment
    2930FROM relExp
Note: See TracChangeset for help on using the changeset viewer.