- Timestamp:
- Mar 29, 2009, 6:15:31 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 31 edited
- 6 copied
-
. (modified) (1 prop)
-
ippTools/share/Makefile.am (modified) (3 diffs)
-
ippTools/share/camtool_find_processedexp.sql (modified) (1 diff)
-
ippTools/share/chiptool_change_imfile_data_state.sql (modified) (1 diff)
-
ippTools/share/chiptool_completely_processed_exp.sql (modified) (1 diff)
-
ippTools/share/chiptool_pendingimfile.sql (modified) (1 diff)
-
ippTools/share/difftool_completed_runs.sql (modified) (1 diff)
-
ippTools/share/difftool_definewarpwarp_insert.sql (copied) (copied from trunk/ippTools/share/difftool_definewarpwarp_insert.sql )
-
ippTools/share/difftool_definewarpwarp_select.sql (copied) (copied from trunk/ippTools/share/difftool_definewarpwarp_select.sql )
-
ippTools/share/difftool_inputskyfile.sql (modified) (4 diffs)
-
ippTools/share/disttool_definebyquery_select.sql (copied) (copied from trunk/ippTools/share/disttool_definebyquery_select.sql )
-
ippTools/share/disttool_pendingcomponent.sql (modified) (9 diffs)
-
ippTools/share/magicdstool_completed_runs.sql (modified) (4 diffs)
-
ippTools/share/magicdstool_todestreak.sql (modified) (4 diffs)
-
ippTools/share/magictool_addmask.sql (modified) (1 diff)
-
ippTools/share/magictool_chipprocessedimfile.sql (modified) (1 diff)
-
ippTools/share/magictool_diffskyfile.sql (modified) (1 diff)
-
ippTools/share/magictool_inputskyfile.sql (modified) (1 diff)
-
ippTools/share/magictool_mask.sql (modified) (1 diff)
-
ippTools/share/magictool_rawimfile.sql (modified) (1 diff)
-
ippTools/share/magictool_tomask.sql (modified) (1 diff)
-
ippTools/share/magictool_toprocess_inputs.sql (modified) (1 diff)
-
ippTools/share/magictool_toprocess_tree.sql (modified) (1 diff)
-
ippTools/share/magictool_toskyfilemask.sql (modified) (1 diff)
-
ippTools/share/magictool_totree.sql (modified) (1 diff)
-
ippTools/share/magictool_warpskyfile.sql (modified) (1 diff)
-
ippTools/share/pxadmin_create_tables.sql (modified) (7 diffs)
-
ippTools/share/pxadmin_drop_tables.sql (modified) (2 diffs)
-
ippTools/share/pztool_find_completed_exp.sql (modified) (1 diff)
-
ippTools/share/regtool_updateprocessedimfile.sql (copied) (copied from trunk/ippTools/share/regtool_updateprocessedimfile.sql )
-
ippTools/share/warptool_change_skyfile_data_state.sql (modified) (1 diff)
-
ippTools/share/warptool_definebyquery.sql (modified) (1 diff)
-
ippTools/share/warptool_finish_run.sql (copied) (copied from trunk/ippTools/share/warptool_finish_run.sql )
-
ippTools/share/warptool_finished_run_select.sql (copied) (copied from trunk/ippTools/share/warptool_finished_run_select.sql )
-
ippTools/share/warptool_pendingcleanuprun.sql (modified) (1 diff)
-
ippTools/share/warptool_pendingcleanupskyfile.sql (modified) (1 diff)
-
ippTools/share/warptool_towarped.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
branches/cnb_branches/cnb_branch_20090301/ippTools/share/Makefile.am
r23352 r23594 76 76 difftool_definebyquery_part2.sql \ 77 77 difftool_definebyquery_temp_create.sql \ 78 difftool_definewarpwarp_select.sql \ 79 difftool_definewarpwarp_insert.sql \ 78 80 difftool_donecleanup.sql \ 79 81 difftool_inputskyfile.sql \ … … 152 154 regtool_revertprocessedexp.sql \ 153 155 regtool_revertprocessedimfile.sql \ 156 regtool_updateprocessedimfile.sql \ 154 157 stacktool_definebyquery_insert.sql \ 155 158 stacktool_definebyquery_insert_random_part1.sql \ … … 172 175 warptool_donecleanup.sql \ 173 176 warptool_exp.sql \ 177 warptool_finished_run_select.sql \ 178 warptool_finish_run.sql \ 174 179 warptool_imfile.sql \ 175 180 warptool_pendingcleanuprun.sql \ -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/camtool_find_processedexp.sql
r21443 r23594 1 1 SELECT DISTINCT 2 2 camProcessedExp.*, 3 chipRun.chip_id, 3 4 rawExp.exp_tag, 4 5 rawExp.exp_name, -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/chiptool_change_imfile_data_state.sql
r23352 r23594 1 1 -- handle changes in data_state. Used for the modes tocleanedimfile and topurgedimfile 2 -- args are new data_state, chip_id, class_id, and current expected state for chipRun 2 -- args are new data_state, a possibly empty string for updating the magicked state, 3 -- chip_id and class_id 3 4 UPDATE chipProcessedImfile 5 JOIN rawImfile USING(exp_id, class_id) 4 6 SET 5 data_state = '%s' 7 chipProcessedImfile.data_state = '%s' 8 -- set magicked hook %s 6 9 WHERE 7 10 chip_id = %lld -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/chiptool_completely_processed_exp.sql
r20608 r23594 11 11 dvodb, 12 12 tess_id, 13 end_stage 13 end_stage, 14 all_files_magicked as magicked 14 15 FROM 15 16 (SELECT 16 17 chipRun.*, 17 18 rawImfile.class_id as rawimfile_class_id, 18 chipProcessedImfile.class_id 19 chipProcessedImfile.class_id, 20 SUM(!chipProcessedImfile.magicked) = 0 as all_files_magicked 19 21 FROM chipRun 20 22 JOIN rawImfile -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/chiptool_pendingimfile.sql
r21334 r23594 4 4 rawImfile.class_id, 5 5 rawImfile.uri, 6 rawImfile.magicked as raw_magicked, 7 (rawImfile.user_1 is not NULL and rawImfile.user_1 > 0.5) as deburned, 6 8 rawExp.exp_tag, 7 9 rawExp.exp_name, -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/difftool_completed_runs.sql
r20973 r23594 1 1 SELECT DISTINCT 2 diff_id 2 diff_id, 3 all_magicked as magicked 3 4 FROM ( 4 5 SELECT 5 6 COUNT(diffInputSkyfile.skycell_id), COUNT(diffSkyfile.skycell_id), 6 diffSkyfile.* 7 diffSkyfile.*, 8 SUM(!diffSkyfile.magicked) = 0 as all_magicked 7 9 FROM diffRun 8 10 JOIN diffInputSkyfile USING(diff_id) -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/difftool_inputskyfile.sql
r20976 r23594 9 9 warpSkyfile.uri, 10 10 warpSkyfile.path_base, 11 warpSkyfile.magicked as magicked, 11 12 0 as template, 12 13 rawExp.camera … … 47 48 warpSkyfile.uri, 48 49 warpSkyfile.path_base, 50 warpSkyfile.magicked as magicked, 49 51 1 as template, 50 52 rawExp.camera … … 85 87 stackSumSkyfile.uri, 86 88 stackSumSkyfile.path_base, 89 0 as magicked, 87 90 0 as template, 88 91 rawExp.camera … … 117 120 stackSumSkyfile.uri, 118 121 stackSumSkyfile.path_base, 122 0 as magicked, 119 123 1 as template, 120 124 rawExp.camera -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/disttool_pendingcomponent.sql
r23352 r23594 2 2 SELECT 3 3 distRun.dist_id, 4 distRun.label, 4 5 stage, 5 6 stage_id, … … 8 9 rawExp.camera, 9 10 outroot, 10 rawImfile.uri as path_base, 11 rawImfile.uri as path_base, -- change this once rawImfile has path_base 11 12 chipProcessedImfile.path_base as chip_path_base, 12 13 NULL as state, … … 15 16 FROM distRun 16 17 JOIN rawExp ON exp_id = stage_id 17 JOIN rawImfile using(exp_id) 18 JOIN ( -- find the last magicked chip run 19 SELECT 20 exp_id, 21 MAX(chip_id) AS chip_id 22 FROM chipRun 23 WHERE 24 chipRun.state = 'full' 25 AND chipRun.exp_id = exp_id 26 -- AND chipRun.magicked 27 -- magicked hook 1 %s 28 GROUP BY exp_id 29 ) AS bestChipRun 30 USING(exp_id) 31 JOIN rawImfile USING(exp_id) 18 32 JOIN chipProcessedImfile 19 ON distRun.chip_id = chipProcessedImfile.chip_id 20 AND rawImfile.class_id = chipProcessedImfile.class_id 33 USING(exp_id, chip_id, class_id) 21 34 LEFT JOIN distComponent 22 35 ON distRun.dist_id = distComponent.dist_id … … 26 39 AND distRun.stage = 'raw' 27 40 AND distComponent.dist_id IS NULL 41 -- if magicked add AND rawImfile.magicked here 42 -- where hook 1 %s 28 43 29 44 -- chip stage … … 31 46 SELECT 32 47 distRun.dist_id, 48 distRun.label, 33 49 stage, 34 50 stage_id, … … 53 69 AND distRun.stage = 'chip' 54 70 AND distComponent.dist_id IS NULL 55 UNION 56 SELECT 57 distRun.dist_id, 71 -- where hook 2 %s 72 UNION 73 SELECT 74 distRun.dist_id, 75 distRun.label, 76 stage, 77 stage_id, 78 chipProcessedImfile.class_id AS component, 79 clean, 80 rawExp.camera, 81 outroot, 82 camProcessedExp.path_base, 83 chipProcessedImfile.path_base as chip_path_base, 84 camRun.state, 85 NULL, 86 0 87 FROM distRun 88 JOIN camRun ON camRun.cam_id = distRun.stage_id 89 JOIN camProcessedExp USING(cam_id) 90 JOIN chipRun USING(chip_id) 91 JOIN chipProcessedImfile USING(exp_id, chip_id) 92 JOIN rawExp using(exp_id) 93 LEFT JOIN distComponent 94 ON distRun.dist_id = distComponent.dist_id 95 AND chipProcessedImfile.class_id = distComponent.component 96 WHERE 97 distRun.state = 'new' 98 AND distRun.stage = 'camera' 99 AND distComponent.dist_id IS NULL 100 -- where hook 3 %s 101 UNION 102 SELECT 103 distRun.dist_id, 104 distRun.label, 105 stage, 106 stage_id, 107 fakeProcessedImfile.class_id AS component, 108 clean, 109 rawExp.camera, 110 outroot, 111 fakeProcessedImfile.path_base, 112 NULL, 113 fakeRun.state, 114 NULL, 115 0 116 FROM distRun 117 JOIN fakeRun ON fakeRun.fake_id = distRun.stage_id 118 JOIN fakeProcessedImfile USING(fake_id) 119 JOIN camRun USING(cam_id) 120 JOIN chipRun USING(chip_id, exp_id) 121 JOIN rawExp using(exp_id) 122 LEFT JOIN distComponent 123 ON distRun.dist_id = distComponent.dist_id 124 AND fakeProcessedImfile.class_id = distComponent.component 125 WHERE 126 distRun.state = 'new' 127 AND distRun.stage = 'fake' 128 AND distComponent.dist_id IS NULL 129 -- where hook 4 %s 130 UNION 131 SELECT 132 distRun.dist_id, 133 distRun.label, 58 134 stage, 59 135 stage_id, … … 81 157 AND distRun.stage = 'warp' 82 158 AND distComponent.dist_id IS NULL 83 UNION 84 SELECT 85 distRun.dist_id, 159 -- where hook 5 %s 160 UNION 161 SELECT 162 distRun.dist_id, 163 distRun.label, 86 164 stage, 87 165 stage_id, … … 108 186 AND distRun.stage = 'diff' 109 187 AND distComponent.dist_id IS NULL 188 -- where hook 6 %s 110 189 UNION 111 190 SELECT DISTINCT 112 191 distRun.dist_id, 192 distRun.label, 113 193 stage, 114 194 stage_id, … … 152 232 AND distRun.stage = 'stack' 153 233 AND distComponent.dist_id IS NULL 234 -- where hook 7 %s 154 235 ) as Foo -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magicdstool_completed_runs.sql
r20973 r23594 12 12 AND magicDSFile.component = rawImfile.class_id 13 13 WHERE 14 magicDSRun.state = ' run'14 magicDSRun.state = 'new' 15 15 AND magicDSRun.stage = 'raw' 16 16 GROUP BY … … 30 30 AND magicDSFile.component = chipProcessedImfile.class_id 31 31 WHERE 32 magicDSRun.state = ' run'32 magicDSRun.state = 'new' 33 33 AND magicDSRun.stage = 'chip' 34 34 GROUP BY … … 48 48 AND magicDSFile.component = warpSkyfile.skycell_id 49 49 WHERE 50 magicDSRun.state = ' run'50 magicDSRun.state = 'new' 51 51 AND magicDSRun.stage = 'warp' 52 52 AND warpSkyfile.fault = 0 … … 72 72 AND magicDSFile.component = diffSkyfile.skycell_id 73 73 WHERE 74 magicDSRun.state = ' run'74 magicDSRun.state = 'new' 75 75 AND magicDSRun.stage = 'diff' 76 76 AND diffSkyfile.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magicdstool_todestreak.sql
r20973 r23594 26 26 AND magicDSFile.component = rawImfile.class_id 27 27 WHERE 28 magicDSRun.state = ' run'28 magicDSRun.state = 'new' 29 29 AND magicDSRun.stage = 'raw' 30 30 AND magicDSFile.component IS NULL … … 57 57 AND magicDSFile.component = chipProcessedImfile.class_id 58 58 WHERE 59 magicDSRun.state = ' run'59 magicDSRun.state = 'new' 60 60 AND magicDSRun.stage = 'chip' 61 61 AND chipRun.state = 'full' … … 91 91 AND magicDSFile.component = warpSkyfile.skycell_id 92 92 WHERE 93 magicDSRun.state = ' run'93 magicDSRun.state = 'new' 94 94 AND magicDSRun.stage = 'warp' 95 95 AND warpRun.state = 'full' … … 127 127 AND magicDSFile.component = diffSkyfile.skycell_id 128 128 WHERE 129 magicDSRun.state = ' run'129 magicDSRun.state = 'new' 130 130 AND magicDSRun.stage = 'diff' 131 131 AND diffSkyfile.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_addmask.sql
r18526 r23594 2 2 magicRun 3 3 SET 4 state = ' stop'4 state = 'full' 5 5 WHERE 6 state != ' stop'6 state != 'full' -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_chipprocessedimfile.sql
r20706 r23594 26 26 chipRun.state = 'full' 27 27 AND chipProcessedImfile.fault = 0 28 -- AND magicRun.state = ' stop'28 -- AND magicRun.state = 'full' 29 29 -- AND magicMask.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_diffskyfile.sql
r20701 r23594 24 24 diffRun.state = 'full' 25 25 AND diffSkyfile.fault = 0 26 -- AND magicRun.state = ' stop'26 -- AND magicRun.state = 'full' 27 27 -- AND magicMask.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_inputskyfile.sql
r20973 r23594 9 9 AND magicInputSkyfile.node = diffSkyfile.skycell_id 10 10 WHERE 11 magicRun.state = ' run'11 magicRun.state = 'new' -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_mask.sql
r20735 r23594 6 6 USING(magic_id) 7 7 WHERE 8 magicRun.state = ' stop'8 magicRun.state = 'full' 9 9 AND magicMask.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_rawimfile.sql
r20706 r23594 24 24 WHERE 25 25 rawImfile.fault = 0 26 -- AND magicRun.state = ' stop'26 -- AND magicRun.state = 'full' 27 27 -- AND magicMask.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_tomask.sql
r18781 r23594 10 10 LEFT JOIN magicNodeResult USING(magic_id, node) 11 11 WHERE 12 magicRun.state = ' run'12 magicRun.state = 'new' 13 13 AND magicNodeResult.node = 'root' 14 14 AND magicNodeResult.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_toprocess_inputs.sql
r21004 r23594 19 19 AND magicTree.node = magicNodeResult.node 20 20 WHERE 21 magicRun.state = ' run'21 magicRun.state = 'new' 22 22 AND magicNodeResult.magic_id IS NULL 23 23 AND magicNodeResult.node IS NULL -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_toprocess_tree.sql
r21099 r23594 15 15 AND magicTree.node = magicNodeResult.node 16 16 WHERE 17 magicRun.state = ' run'17 magicRun.state = 'new' 18 18 -- where hook %s 19 19 ORDER BY -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_toskyfilemask.sql
r15348 r23594 7 7 USING(magic_id) 8 8 WHERE 9 magicRun.state = ' run'9 magicRun.state = 'new' 10 10 AND magicSkyfileMask.magic_id IS NULL -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_totree.sql
r20474 r23594 12 12 USING(magic_id) 13 13 WHERE 14 magicRun.state = ' run'14 magicRun.state = 'new' 15 15 AND magicTree.node IS NULL 16 16 AND magicRun.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/magictool_warpskyfile.sql
r20701 r23594 21 21 warpRun.state = 'full' 22 22 AND warpSkyfile.fault = 0 23 -- AND magicRun.state = ' stop'23 -- AND magicRun.state = 'full' 24 24 -- AND magicMask.fault = 0 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/pxadmin_create_tables.sql
r23352 r23594 167 167 fault SMALLINT NOT NULL, 168 168 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 169 magicked TINYINT, 169 170 PRIMARY KEY(exp_id), 170 171 KEY(exp_name), … … 263 264 tess_id VARCHAR(64), 264 265 end_stage VARCHAR(64), 266 magicked TINYINT, 265 267 PRIMARY KEY(chip_id), 266 268 KEY(chip_id), KEY(exp_id), … … 826 828 end_stage VARCHAR(64), 827 829 registered DATETIME, 830 magicked TINYINT, 828 831 PRIMARY KEY(warp_id), 829 832 KEY(warp_id), … … 963 966 tess_id VARCHAR(64), 964 967 exp_id BIGINT, 968 magicked TINYINT, 965 969 PRIMARY KEY(diff_id), 966 970 KEY(diff_id), … … 1095 1099 stage_id BIGINT, 1096 1100 cam_id BIGINT, 1101 label VARCHAR(64), 1097 1102 outroot VARCHAR(255), 1098 1103 recoveryroot VARCHAR(255), … … 1102 1107 KEY(magic_ds_id), 1103 1108 KEY(state), 1109 KEY(magic_id), 1110 KEY(label), 1104 1111 FOREIGN KEY (magic_id) REFERENCES magicRun(magic_id) 1105 1112 ) ENGINE=innodb DEFAULT CHARSET=latin1; … … 1225 1232 KEY(job_id), 1226 1233 FOREIGN KEY (req_id) REFERENCES pstampRequest(req_id) 1227 ) ENGINE=innodb DEFAULT CHARSET=latin1 1234 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1235 1236 CREATE TABLE distTarget ( 1237 target_id BIGINT AUTO_INCREMENT, 1238 obs_mode VARCHAR(64), 1239 stage VARCHAR(64), 1240 clean TINYINT, 1241 state VARCHAR(64), 1242 comment VARCHAR(255), 1243 PRIMARY KEY(target_id) 1244 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1245 1246 CREATE TABLE distRun ( 1247 dist_id BIGINT AUTO_INCREMENT, 1248 target_id BIGINT, 1249 stage VARCHAR(64), 1250 stage_id BIGINT, 1251 label VARCHAR(64), 1252 outroot VARCHAR(255), 1253 clean TINYINT, 1254 state VARCHAR(64), 1255 time_stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 1256 fault SMALLINT, 1257 PRIMARY KEY(dist_id), 1258 KEY(state), 1259 KEY(label), 1260 FOREIGN KEY(target_id) REFERENCES distTarget(target_id) 1261 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1262 1263 CREATE TABLE distComponent ( 1264 dist_id BIGINT, 1265 component VARCHAR(64), 1266 bytes INT, 1267 md5sum VARCHAR(32), 1268 state VARCHAR(64), 1269 name VARCHAR(255), 1270 fault SMALLINT, 1271 PRIMARY KEY(dist_id, component), 1272 KEY(state), 1273 FOREIGN KEY(dist_id) REFERENCES distRun(dist_id) 1274 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1275 1276 1277 CREATE TABLE rcDSProduct ( 1278 prod_id BIGINT AUTO_INCREMENT, 1279 name VARCHAR(64), 1280 dbname VARCHAR(64), 1281 dbhost VARCHAR(64), 1282 prod_root VARCHAR(255), 1283 PRIMARY KEY(prod_id) 1284 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1285 1286 CREATE TABLE rcDestination ( 1287 dest_id BIGINT AUTO_INCREMENT, 1288 prod_id BIGINT, 1289 name VARCHAR(64), 1290 status_uri VARCHAR(255), 1291 comment VARCHAR(255), 1292 last_fileset VARCHAR(255), 1293 state VARCHAR(64), 1294 PRIMARY KEY(dest_id), 1295 FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id) 1296 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1297 1298 1299 CREATE TABLE rcInterest ( 1300 int_id BIGINT AUTO_INCREMENT, 1301 dest_id BIGINT, 1302 target_id BIGINT, 1303 prod_id BIGINT, 1304 state VARCHAR(64), 1305 PRIMARY KEY(int_id), 1306 FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id), 1307 FOREIGN KEY(target_id) REFERENCES distTarget(target_id), 1308 FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id) 1309 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1310 1311 CREATE TABLE rcDSFileset ( 1312 fs_id BIGINT AUTO_INCREMENT, 1313 dist_id BIGINT, 1314 prod_id BIGINT, 1315 name VARCHAR(64), 1316 state VARCHAR(64), 1317 registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 1318 PRIMARY KEY(fs_id), 1319 FOREIGN KEY(dist_id) REFERENCES distRun(dist_id), 1320 FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id) 1321 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1322 1323 CREATE TABLE rcRun ( 1324 rc_id BIGINT AUTO_INCREMENT, 1325 fs_id BIGINT, 1326 dest_id BIGINT, 1327 state VARCHAR(64), 1328 registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 1329 PRIMARY KEY(rc_id), 1330 FOREIGN KEY(fs_id) REFERENCES rcDSFileset(fs_id), 1331 FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id) 1332 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1333 1334 1335 1336 -- This comment line is here to avoid empty query error. 1337 -- Another way to avoid that problem is to omit the semicolon above but I think that is untidy. -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/pxadmin_drop_tables.sql
r21308 r23594 54 54 DROP TABLE IF EXISTS calRun; 55 55 DROP TABLE IF EXISTS flatcorrRun; 56 DROP TABLE IF EXISTS flatcorrExp; 56 57 DROP TABLE IF EXISTS flatcorrChipLink; 57 58 DROP TABLE IF EXISTS flatcorrCamLink; … … 60 61 DROP TABLE IF EXISTS pstampRequest; 61 62 DROP TABLE IF EXISTS pstampJob; 63 DROP TABLE IF EXISTS distRun; 64 DROP TABLE IF EXISTS distTarget; 65 DROP TABLE IF EXISTS distComponent; 66 DROP TABLE IF EXISTS rcDSProduct; 67 DROP TABLE IF EXISTS rcDestination; 68 DROP TABLE IF EXISTS rcInterest; 69 DROP TABLE IF EXISTS rcDSFileset; 70 DROP TABLE IF EXISTS rcRun; 71 62 72 SET FOREIGN_KEY_CHECKS=1 -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/pztool_find_completed_exp.sql
r17925 r23594 1 1 SELECT DISTINCT 2 exp_name, -- return should match pzDownloadExp2 exp_name, 3 3 camera, 4 4 telescope, 5 state, 6 NULL as epoch -- epoch 5 state 7 6 FROM ( 8 7 SELECT -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/warptool_change_skyfile_data_state.sql
r23352 r23594 8 8 warp_id = %lld 9 9 AND skycell_id = '%s' 10 -- only update if chipRun.state has the expected value11 -- AND (12 -- SELECT state from warpRun where warpRun.warp_id = warpSkyfile.warp_id13 -- ) = '%s' -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/warptool_definebyquery.sql
r20041 r23594 9 9 rawExp.dateobs, 10 10 rawExp.exp_tag, 11 rawExp.exp_name, 11 12 rawExp.exp_type, 12 13 rawExp.filelevel, -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/warptool_pendingcleanuprun.sql
r19521 r23594 13 13 USING (exp_id) 14 14 WHERE 15 (warpRun.state = 'goto_cleaned' OR warpRun.state = 'goto_ purged')15 (warpRun.state = 'goto_cleaned' OR warpRun.state = 'goto_scrubbed' OR warpRun.state = 'goto_purged') -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/warptool_pendingcleanupskyfile.sql
r19521 r23594 10 10 USING(warp_id) 11 11 WHERE 12 (warpRun.state = 'goto_cleaned'AND warpSkyfile.data_state = 'full')12 ((warpRun.state = 'goto_cleaned' AND warpSkyfile.data_state = 'full') 13 13 OR 14 (warpRun.state = 'goto_purged' AND warpSkyfile.data_state != 'purged') 14 (warpRun.state = 'goto_scrubbed' AND warpSkyfile.data_state = 'full') 15 OR 16 (warpRun.state = 'goto_purged' AND warpSkyfile.data_state != 'purged')) -
branches/cnb_branches/cnb_branch_20090301/ippTools/share/warptool_towarped.sql
r21308 r23594 9 9 rawExp.camera, 10 10 rawExp.exp_tag, 11 warpRun.workdir 11 warpRun.workdir, 12 chipRun.magicked 12 13 FROM warpRun 13 14 JOIN warpSkyCellMap
Note:
See TracChangeset
for help on using the changeset viewer.
