Tapper/Schema/TestrunDB/Result/ChartLineAdditionals.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tapper/Schema/TestrunDB/Result/ChartAxisTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ChartLineAxisColumns.pm »
1 package Tapper::Schema::TestrunDB::Result::ChartLineAdditionals;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::ChartLineAdditionals::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - Keep additional columns for chart line popup
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(qw/InflateColumn::DateTime Core/);
12 10 __PACKAGE__->table('chart_line_additionals');
13 10 __PACKAGE__->add_columns(
14 'chart_line_id', {
15 data_type => 'INT',
16 default_value => undef,
17 is_nullable => 0,
18 size => 11,
19 extra => {
20 unsigned => 1,
21 },
22 },
23 'chart_line_additional_column', {
24 data_type => 'VARCHAR',
25 default_value => undef,
26 is_nullable => 0,
27 size => 512,
28 },
29 'chart_line_additional_url', {
30 data_type => 'VARCHAR',
31 default_value => undef,
32 is_nullable => 1,
33 size => 1024,
34 },
35 'created_at', {
36 data_type => 'TIMESTAMP',
37 default_value => undef,
38 is_nullable => 0,
39 set_on_create => 1,
40 },
41 );
42  
43  
44 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
45  
46 10 __PACKAGE__->set_primary_key('chart_line_id','chart_line_additional_column');
47 10 __PACKAGE__->belongs_to(
48 chart_line => "${basepkg}::ChartLines", { 'foreign.chart_line_id' => 'self.chart_line_id' },
49 );
50  
51 10 1;
52  
53 __END__
« Tapper/Schema/TestrunDB/Result/ChartAxisTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ChartLineAxisColumns.pm »