diff options
Diffstat (limited to 'migrate.pl')
-rwxr-xr-x | migrate.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/migrate.pl b/migrate.pl index 8980248c7..907e0cab5 100755 --- a/migrate.pl +++ b/migrate.pl @@ -25,7 +25,7 @@ GetOptions(\%switch, 'help|h|?', 'from=s', 'verbose|v+', 'dry-run'); # Print the help message if that switch was selected or if --from # wasn't specified. if (!$switch{'from'} or $switch{'help'}) { - pod2usage({-exitval => 1}); + pod2usage({-exitval => 1}); } my $migrator = Bugzilla::Migrate->load($switch{'from'}); @@ -37,13 +37,13 @@ $migrator->do_migration(); # Even if there's an error, we want to be sure that the serial values # get reset properly. END { - if ($migrator and $migrator->dry_run) { - my $dbh = Bugzilla->dbh; - if ($dbh->bz_in_transaction) { - $dbh->bz_rollback_transaction(); - } - $migrator->reset_serial_values(); + if ($migrator and $migrator->dry_run) { + my $dbh = Bugzilla->dbh; + if ($dbh->bz_in_transaction) { + $dbh->bz_rollback_transaction(); } + $migrator->reset_serial_values(); + } } __END__ @@ -96,4 +96,4 @@ the size of all attachments in your current bug-tracker. You may also need to increase the number of file handles a process is allowed to hold open (as the migrator will create a file handle for each attachment in your database). On Linux and simliar systems, you can do this as root -by typing C<ulimit -n 65535> before running your script.
\ No newline at end of file +by typing C<ulimit -n 65535> before running your script. |