forked from masak/proto
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add Build ID to ::Dists model
This will allow us to rebuild modules database right into the live database and keep in RAM info for just one dist at a time instead of (potentially) thousands... MILLIONS!... of dists.
- Loading branch information
1 parent
d9f62a2
commit 1b637f1
Showing
5 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package ModulesPerl6::Model::Dists::Schema::Result::BuildId; | ||
| use ModulesPerl6::Model::ResultClass; | ||
|
|
||
| primary_column id => { data_type => 'text' }; | ||
|
|
||
| has_many dists | ||
| => 'ModulesPerl6::Model::Dists::Schema::Result::Dist' | ||
| => { 'foreign.build_id' => 'self.id' }; | ||
|
|
||
| 1; | ||
|
|
||
| __END__ | ||
|
|
||
| =encoding utf8 | ||
| =head1 NAME | ||
| ModulesPerl6::Model::Dists::Schema::Result::TravisStatus - Travis-CI statuses | ||
| =head1 DESCRIPTION | ||
| This table stores L<https://travis-ci.org/> statuses for the dists. | ||
| =head1 CONTACT INFORMATION | ||
| Original version of this module was written by Zoffix Znet | ||
| (L<https://github.com/zoffixznet/>, C<Zoffix> on irc.freenode.net). | ||
| =head1 LICENSE | ||
| You can use and distribute this module under the same terms as Perl itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters