Skip to content

Commit

Permalink
Removed "date" column from "mantis_project_version_table" query
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Kautz committed Feb 7, 2011
1 parent 6c130c9 commit d09ea98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changelog
Expand Up @@ -2,7 +2,7 @@

* Merge fork from pschuele
* Make categories and trackers available equally through new parameter:
--category-source (default: categories)
--category_source (default: categories)


2011-02-07 Philipp Schüle <p.schuele@metaways.de>
Expand Down
9 changes: 5 additions & 4 deletions mantis2redmine.pl
Expand Up @@ -113,7 +113,7 @@ =head1 Changelog
"load_maps" => \( $opt{ load_maps } ),
"config|c=s" => \( $opt{ config } = "" ),

"category-source" => \( $opt{ category_source } = "categories" ),
"category_source" => \( $opt{ category_source } = "categories" ),

"attachment_dir=s" => \( $opt{ attachment_dir } = "attachments" )
);
Expand Down Expand Up @@ -432,12 +432,13 @@ =head2 import_versions
=cut

sub import_versions {

#my $sql_version_table = 'SELECT id, version, description, project_id, DATE_FORMAT( date, \'%Y-%m-%d\' ) as date, released FROM mantis_project_version_table';
my $sql_version_table = 'SELECT id, version, description, project_id FROM mantis_project_version_table';
my %mantis = map {
$_->{ name } = substr( delete $_->{ version }, 0, 30 );
$_->{ released } = delete $_->{ released };
$_->{ date } = delete $_->{ date };
( $_->{ id } => $_ );
} $dbix_mantis->query( 'SELECT id, version, description, project_id, DATE_FORMAT( date, \'%Y-%m-%d\' ) as date, released FROM mantis_project_version_table' )->hashes;
} $dbix_mantis->query( $sql_version_table )->hashes;

my %redmine = map {
( $_->{ id } => $_ );
Expand Down

0 comments on commit d09ea98

Please sign in to comment.