IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2013, 4:48:58 PM (13 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/ipp-20130711/ippTools/share
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/ippTools/share

  • branches/eam_branches/ipp-20130711/ippTools/share/pxadmin_create_tables.sql

    r35789 r36071  
    21722172    dataRelease INT,         -- PSPS dataRelease
    21732173    priority    INT,
     2174    dvodb       VARCHAR(255),
     2175    ubercal_file VARCHAR(255),
    21742176    PRIMARY KEY(rel_id),
    21752177    UNIQUE KEY(surveyID, release_name),
     
    21862188    chip_id     BIGINT,         -- links to the runs that supplied the data
    21872189    cam_id      BIGINT,         -- for this release
    2188     group_id    INT,         -- id of relGroup that this exposure is contained in
     2190    group_id    INT,            -- id of relGroup that this exposure is contained in
    21892191    state       VARCHAR(16),    -- released, pending, archive, drop 
    2190     flags       INT UNSIGNED,  -- flags for relphot, relastro, ??
     2192    flags       INT UNSIGNED,   -- flags for relphot, relastro, ??
    21912193    zpt_obs     FLOAT,          -- calibrated zero point for this release of
    21922194    zpt_stdev   FLOAT,          -- this exposure
     2195    mcal        FLOAT,          -- this exposure
     2196    ubercal_dist INT,           -- ubercal distance (from dvo calibration)
    21932197    path_base   VARCHAR(255),   -- path_base of any supporting files for this
    21942198                                -- release of this exposure.
     
    22732277) ENGINE=innodb DEFAULT CHARSET=latin1;
    22742278
     2279CREATE TABLE dqstatsRun (
     2280  dqstats_id BIGINT NOT NULL AUTO_INCREMENT,
     2281  state VARCHAR(64) DEFAULT NULL,
     2282  registered TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
     2283  label VARCHAR(64) DEFAULT NULL,
     2284  fault SMALLINT NOT NULL,
     2285  PRIMARY KEY  (dqstats_id),
     2286  KEY label (label),
     2287  KEY fault (fault)
     2288) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     2289
     2290CREATE TABLE dqstatsContent (
     2291  dqstats_id BIGINT,
     2292  exp_id BIGINT,
     2293  chip_id BIGINT,
     2294  cam_id BIGINT,
     2295  warp_id BIGINT,
     2296  invalid TINYINT DEFAULT NULL,
     2297  KEY dqstats_id (dqstats_id),
     2298  KEY exp_id (exp_id),
     2299  KEY chip_id (chip_id),
     2300  KEY cam_id (cam_id),
     2301  KEY warp_id (warp_id),
     2302  FOREIGN KEY (dqstats_id) REFERENCES dqstatsRun (dqstats_id),
     2303  FOREIGN KEY (exp_id) REFERENCES rawExp (exp_id),
     2304  FOREIGN KEY (chip_id) REFERENCES chipRun (chip_id),
     2305  FOREIGN KEY (cam_id) REFERENCES camRun (cam_id),
     2306  FOREIGN KEY (warp_id) REFERENCES warpRun (warp_id)
     2307) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    22752308
    22762309
Note: See TracChangeset for help on using the changeset viewer.