Skip to content
Browse files

Uncommenting relationship as it seems okay as long as there is author…

… data.

This brings up a possible issue with bin/authors.pl as it only adds/updates
author data for existing releases. When a brand-new author uploads a dist,
they will not be in that table after the indexing. Will have to investigate
further.
  • Loading branch information...
1 parent 83facc3 commit 6e1063c7a7aa724e69321b3adae7220542270a3f @bricas committed Jan 24, 2013
Showing with 6 additions and 7 deletions.
  1. +6 −7 lib/CPAN/Changes/Web/Schema/Result/Release.pm
View
13 lib/CPAN/Changes/Web/Schema/Result/Release.pm
@@ -75,15 +75,14 @@ __PACKAGE__->add_unique_constraint(
release_key => [ qw( distribution author version ) ], );
__PACKAGE__->has_many( scan_release_joins =>
- 'CPAN::Changes::Web::Schema::Result::ScanReleaseJoin' =>
- 'release_id' );
+ 'CPAN::Changes::Web::Schema::Result::ScanReleaseJoin' =>
+ 'release_id' );
__PACKAGE__->many_to_many( scans => 'scan_release_joins' => 'scan' );
-# MySQL is not happy with this constraint.
-# __PACKAGE__->might_have(
-# 'author_info' => 'CPAN::Changes::Web::Schema::Result::Author',
-# { 'foreign.id' => 'self.author' }
-# );
+__PACKAGE__->might_have(
+ 'author_info' => 'CPAN::Changes::Web::Schema::Result::Author',
+ { 'foreign.id' => 'self.author' }
+);
sub status_text {
my $self = shift;

0 comments on commit 6e1063c

Please sign in to comment.
Something went wrong with that request. Please try again.