Changeset 35227 for trunk/ippTools/share
- Timestamp:
- Mar 4, 2013, 2:08:07 PM (13 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 2 edited
-
pxadmin_create_tables.sql (modified) (6 diffs)
-
pxadmin_drop_tables.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/pxadmin_create_tables.sql
r35213 r35227 2153 2153 2154 2154 CREATE TABLE survey ( 2155 surveyID INT (8),2155 surveyID INT, 2156 2156 surveyName VARCHAR(16) NOT NULL, 2157 2157 description VARCHAR(255), 2158 2158 PRIMARY KEY(surveyID), 2159 UNIQUE KEY( name)2159 UNIQUE KEY(surveyName) 2160 2160 ) ENGINE=InnoDB CHARSET=latin1; 2161 2161 2162 2163 2162 CREATE TABLE ippRelease ( 2164 rel_id INT (8)AUTO_INCREMENT,2165 surveyID INT (8),2163 rel_id INT AUTO_INCREMENT, 2164 surveyID INT, 2166 2165 release_name VARCHAR(64), 2167 rel ase_state VARCHAR(16), -- active, pending, archive, drop2168 dataRelease INT (8), -- PSPS dataRelease2169 priority INT (8),2166 release_state VARCHAR(16), -- active, pending, archive, drop 2167 dataRelease INT, -- PSPS dataRelease 2168 priority INT, 2170 2169 PRIMARY KEY(rel_id), 2171 2170 KEY(release_name), 2172 KEY( state),2171 KEY(release_state), 2173 2172 KEY(priority), 2174 2173 FOREIGN KEY(surveyID) REFERENCES survey(surveyID) … … 2177 2176 CREATE TABLE relExp ( 2178 2177 relexp_id BIGINT AUTO_INCREMENT, 2179 rel_id INT (8),2178 rel_id INT, 2180 2179 exp_id BIGINT, 2181 2180 chip_id BIGINT, -- links to the runs that supplied the data 2182 2181 cam_id BIGINT, -- for this release 2183 group_id INT (8), -- id of relGroup that this exposure is contained in2182 group_id INT, -- id of relGroup that this exposure is contained in 2184 2183 state VARCHAR(16), -- released, pending, archive, drop 2185 flags INT UNSIGNED, -- flags for relphot, relastro, ??2184 flags INT UNSIGNED, -- flags for relphot, relastro, ?? 2186 2185 zpt_obs FLOAT, -- calibrated zero point for this release of 2187 2186 zpt_stdev FLOAT, -- this exposure … … 2202 2201 CREATE TABLE relStack ( 2203 2202 relstack_id BIGINT AUTO_INCREMENT, 2204 rel_id INT (8),2203 rel_id INT, 2205 2204 stack_id BIGINT, -- id of the stackRun 2206 2205 skycal_id BIGINT, -- id of the sky calibration run that supplied the calibration … … 2214 2213 zpt_obs FLOAT, -- calibrated zero point for this release of this skycell 2215 2214 zpt_stdev FLOAT, 2216 mjd_obs INT UNSIGNED, -- for nightly stacks the mjd_obs 2215 mjd_obs INT UNSIGNED, -- for nightly stacks the mjd_obs, zero for deep and reference 2217 2216 path_base VARCHAR(255), -- path_base of any supporting files, 2218 2217 fault SMALLINT NOT NULL, … … 2231 2230 2232 2231 CREATE TABLE relGroup ( 2233 group_id INT (8)AUTO_INCREMENT,2234 rel_id INT (8),2232 group_id INT AUTO_INCREMENT, 2233 rel_id INT, 2235 2234 group_type VARCHAR(16), 2236 2235 lap_id BIGINT, … … 2252 2251 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2253 2252 2253 CREATE TABLE lapGroup ( 2254 seq_id BIGINT, 2255 projection_cell VARCHAR(64), 2256 state VARCHAR(16), 2257 fault SMALLINT, 2258 PRIMARY KEY(seq_id, projection_cell), 2259 KEY(state), 2260 KEY(fault), 2261 FOREIGN KEY(seq_id) REFERENCES lapSequence(seq_id) 2262 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2263 2254 2264 2255 2265 -
trunk/ippTools/share/pxadmin_drop_tables.sql
r34913 r35227 109 109 DROP TABLE IF EXISTS skycalResult; 110 110 DROP TABLE IF EXISTS skycell; 111 DROP TABLE IF EXISTS relStack; 111 112 DROP TABLE IF EXISTS relExp; 113 DROP TABLE IF EXISTS relGroup; 112 114 DROP TABLE IF EXISTS ippRelease; 113 115 DROP TABLE IF EXISTS survey; 116 DROP TABLE IF EXISTS lapGroup; 114 117 115 118 SET FOREIGN_KEY_CHECKS=1
Note:
See TracChangeset
for help on using the changeset viewer.
