Changeset 21007
- Timestamp:
- Dec 15, 2008, 4:09:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/tools/collapse_diffinputs.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/collapse_diffinputs.pl
r20994 r21007 34 34 stack1, 35 35 warp2, 36 stack2 36 stack2, 37 skycell_id 37 38 FROM 38 39 (select 39 40 diff_id, 40 41 warp1 as warp1, 41 stack2 as stack1 42 stack2 as stack1, 43 skycell_id as skycell_id 42 44 from diffInputSkyfile 43 45 WHERE template = 0 … … 47 49 diff_id, 48 50 warp1 as warp2, 49 stack2 as stack2 51 stack2 as stack2, 52 skycell_id as stack_skycell 50 53 from diffInputSkyfile 51 54 WHERE template = 1 … … 68 71 my $stack1 = $ref->{stack1}; 69 72 my $stack2 = $ref->{stack2}; 73 my $skycell_id = $ref->{skycell_id}; 70 74 71 75 # reorganizing columns puts warp1 and stack 1 correctly for template. … … 87 91 die "unexpected input set for $diff_id"; 88 92 } 93 94 # set skycell_id in any existing diffSkyfile 95 $dbh->do("UPDATE diffSkyfile set skycell_id = ? where diff_id = ?", undef, $skycell_id, $diff_id); 89 96 90 97 #
Note:
See TracChangeset
for help on using the changeset viewer.
