IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2013, 2:06:32 PM (13 years ago)
Author:
watersc1
Message:

background continuity changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20130211/ippTools/share/pxadmin_create_tables.sql

    r35134 r35144  
    521521    deteff_uq FLOAT,
    522522    quality SMALLINT NOT NULL DEFAULT 0,
     523    background_model SMALLINT,
    523524    PRIMARY KEY(cam_id),
    524525    KEY(fault),
     
    18431844    data_group VARCHAR(64),           -- group for data
    18441845    dist_group VARCHAR(64),           -- group for distribution
    1845     reduction VARCHAR(64),            -- reduction class (for altering recipe)
    1846     alt_cam_label VARCHAR(64),        -- label for alternate version of astrometry (optional)
     1846    reduction VARCHAR(64),    -- reduction class (for altering recipe)
    18471847    note VARCHAR(255),        -- note
    18481848    registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     
    21622162    surveyID    INT(8),
    21632163    releaseName VARCHAR(64),
    2164     relase_state VARCHAR(16),   -- active, pending, archive, drop
     2164    state       VARCHAR(16),    -- active, pending archive drop
    21652165    dataRelease INT(8),         -- PSPS dataRelease
    2166     priority    INT(8),
    21672166    PRIMARY KEY(rel_id),
    21682167    KEY(releaseName),
    21692168    KEY(state),
    2170     KEY(priority),
    21712169    FOREIGN KEY(surveyID) REFERENCES survey(surveyID)
    21722170) ENGINE=Innodb DEFAULT CHARSET=latin1;
     
    21942192) ENGINE=innodb DEFAULT CHARSET=latin1;
    21952193
    2196 CREATE TABLE relStack (
    2197     relstack_id BIGINT AUTO_INCREMENT,
    2198     rel_id      INT(8),
    2199     skycal_id   BIGINT,         -- id of the sky calibration run that supplied the calibration
    2200                                 -- for this release. We get back to stack from here
    2201     skycell_id  varchar(64),
    2202     tess_id     varchar(64),
    2203     state       VARCHAR(16),    -- released, pending, archive, drop 
    2204     flags       INT UNSIGNED,
    2205     stack_type  VARCHAR(16),    -- nightly, deep, reference
    2206     zpt_obs     FLOAT,          -- calibrated zero point for this release of this skycell
    2207     zpt_stdev   FLOAT,
    2208     fwhm_major  FLOAT,          -- seeing as measured by staticsky
    2209     path_base   VARCHAR(255),   -- path_base of any supporting files,
    2210     registered  DATETIME,
    2211     time_stamp  DATETIME,
    2212     PRIMARY KEY (relstack_id),
    2213     KEY (tess_id, skycell_id),
    2214     KEY (rel_id, tess_id, skycell_id),
    2215     FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id),
    2216     FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id)
    2217 ) ENGINE=innodb DEFAULT CHARSET=latin1;
    2218 
    2219 
    2220 
    2221 -- These comment lines are here to avoid an empty query error.
     2194
     2195-- This comment line is here to avoid empty query error.
    22222196-- Another way to avoid that problem is to omit the semicolon above but I think that is untidy.
Note: See TracChangeset for help on using the changeset viewer.