« Tapper/Schema/TestrunDB/Result/TestrunDependency.pm
↑ Summary
Tapper/Schema/TestrunDB/Result/TestrunRequestedFeature.pm »
| 1 | package Tapper::Schema::TestrunDB::Result::TestrunPrecondition; | ||
| 2 | 10 | our $AUTHORITY = 'cpan:TAPPER'; | |
| 3 | 10 | $Tapper::Schema::TestrunDB::Result::TestrunPrecondition::VERSION = '5.0.12'; | |
| 4 | # ABSTRACT: Tapper - Containg relations between testruns and preconditions | ||
| 5 | |||
| 6 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 10 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 10 | ▶ | use parent 'DBIx::Class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 10 | __PACKAGE__->load_components("Core"); | |
| 12 | 10 | __PACKAGE__->table("testrun_precondition"); | |
| 13 | 10 | __PACKAGE__->add_columns | |
| 14 | ( | ||
| 15 | "testrun_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, }, | ||
| 16 | "precondition_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, }, | ||
| 17 | "succession", { data_type => "INT", default_value => undef, is_nullable => 1, size => 10, }, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 10 | __PACKAGE__->set_primary_key(qw/testrun_id precondition_id/); | |
| 21 | |||
| 22 | 10 | __PACKAGE__->belongs_to( testrun => 'Tapper::Schema::TestrunDB::Result::Testrun', { 'foreign.id' => 'self.testrun_id' }); | |
| 23 | 10 | __PACKAGE__->belongs_to( precondition => 'Tapper::Schema::TestrunDB::Result::Precondition', { 'foreign.id' => 'self.precondition_id' }); | |
| 24 | |||
| 25 | 10 | 1; | |
| 26 | |||
| 27 | __END__ | ||