- Timestamp:
- Feb 11, 2013, 2:06:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20130211/ippTools/share/pxadmin_create_tables.sql
r35134 r35144 521 521 deteff_uq FLOAT, 522 522 quality SMALLINT NOT NULL DEFAULT 0, 523 background_model SMALLINT, 523 524 PRIMARY KEY(cam_id), 524 525 KEY(fault), … … 1843 1844 data_group VARCHAR(64), -- group for data 1844 1845 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) 1847 1847 note VARCHAR(255), -- note 1848 1848 registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered … … 2162 2162 surveyID INT(8), 2163 2163 releaseName VARCHAR(64), 2164 relase_state VARCHAR(16), -- active, pending, archive,drop2164 state VARCHAR(16), -- active, pending archive drop 2165 2165 dataRelease INT(8), -- PSPS dataRelease 2166 priority INT(8),2167 2166 PRIMARY KEY(rel_id), 2168 2167 KEY(releaseName), 2169 2168 KEY(state), 2170 KEY(priority),2171 2169 FOREIGN KEY(surveyID) REFERENCES survey(surveyID) 2172 2170 ) ENGINE=Innodb DEFAULT CHARSET=latin1; … … 2194 2192 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2195 2193 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. 2222 2196 -- 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.
