From: mkanat%bugzilla.org <> Date: Mon, 1 May 2006 06:54:37 +0000 (+0000) Subject: Bug 335572: contrib/bzdbcopy.pl fails because it tries to insert too long a name... X-Git-Tag: bugzilla-2.22.1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3952c15950d1c4bb822cc3da463508ca58ee63b;p=thirdparty%2Fbugzilla.git Bug 335572: contrib/bzdbcopy.pl fails because it tries to insert too long a name into fielddefs Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- diff --git a/contrib/bzdbcopy.pl b/contrib/bzdbcopy.pl index 20fca2cfa0..ac3ba8248a 100755 --- a/contrib/bzdbcopy.pl +++ b/contrib/bzdbcopy.pl @@ -172,13 +172,6 @@ foreach my $table (@table_list) { print "\n\n"; } -# And there's one entry in the fielddefs table that needs -# to be manually fixed. This is a huge hack. -my $delta_fdef = "(" . $target_db->sql_to_days('NOW()') . " - " . - $target_db->sql_to_days('bugs.delta_ts') . ")"; -$target_db->do(q{UPDATE fielddefs SET name = ? - WHERE name LIKE '%bugs.delta_ts%'}, undef, $delta_fdef); - print "Committing changes to the target database...\n"; $target_db->commit;