line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::ChartLines; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::ChartLines::VERSION = '5.0.11'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Keep Chart Lines for Charts |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3392
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
210
|
|
7
|
7
|
|
|
7
|
|
33
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
279
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
37
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
33
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/FilterColumn InflateColumn::DateTime Core/); |
12
|
|
|
|
|
|
|
__PACKAGE__->table('chart_lines'); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
'chart_line_id', { |
15
|
|
|
|
|
|
|
data_type => 'INT', |
16
|
|
|
|
|
|
|
default_value => undef, |
17
|
|
|
|
|
|
|
is_nullable => 0, |
18
|
|
|
|
|
|
|
size => 11, |
19
|
|
|
|
|
|
|
is_auto_increment => 1, |
20
|
|
|
|
|
|
|
extra => { |
21
|
|
|
|
|
|
|
unsigned => 1, |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
'chart_version_id', { |
25
|
|
|
|
|
|
|
data_type => 'INT', |
26
|
|
|
|
|
|
|
default_value => undef, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
size => 11, |
29
|
|
|
|
|
|
|
is_foreign_key => 1, |
30
|
|
|
|
|
|
|
extra => { |
31
|
|
|
|
|
|
|
unsigned => 1, |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
'chart_line_name' , { |
35
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
36
|
|
|
|
|
|
|
default_value => undef, |
37
|
|
|
|
|
|
|
is_nullable => 0, |
38
|
|
|
|
|
|
|
size => 128, |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'chart_axis_x_column_format' , { |
41
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
42
|
|
|
|
|
|
|
default_value => undef, |
43
|
|
|
|
|
|
|
is_nullable => 0, |
44
|
|
|
|
|
|
|
size => 64, |
45
|
|
|
|
|
|
|
}, |
46
|
|
|
|
|
|
|
'chart_axis_y_column_format' , { |
47
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
48
|
|
|
|
|
|
|
default_value => undef, |
49
|
|
|
|
|
|
|
is_nullable => 0, |
50
|
|
|
|
|
|
|
size => 64, |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
'created_at', { |
53
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
54
|
|
|
|
|
|
|
default_value => undef, |
55
|
|
|
|
|
|
|
is_nullable => 0, |
56
|
|
|
|
|
|
|
set_on_create => 1, |
57
|
|
|
|
|
|
|
}, |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('chart_line_id'); |
64
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( |
65
|
|
|
|
|
|
|
'ux_chart_lines_01' => ['chart_version_id','chart_line_name'], |
66
|
|
|
|
|
|
|
); |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
69
|
|
|
|
|
|
|
chart_version => "${basepkg}::ChartVersions", |
70
|
|
|
|
|
|
|
{ 'foreign.chart_version_id' => 'self.chart_version_id' }, |
71
|
|
|
|
|
|
|
); |
72
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
73
|
|
|
|
|
|
|
chart_additionals => "${basepkg}::ChartLineAdditionals", |
74
|
|
|
|
|
|
|
{ 'foreign.chart_line_id' => 'self.chart_line_id' }, |
75
|
|
|
|
|
|
|
); |
76
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
77
|
|
|
|
|
|
|
chart_axis_elements => "${basepkg}::ChartLineAxisElements", |
78
|
|
|
|
|
|
|
{ 'foreign.chart_line_id' => 'self.chart_line_id' }, |
79
|
|
|
|
|
|
|
); |
80
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
81
|
|
|
|
|
|
|
chart_tiny_url_lines => "${basepkg}::ChartTinyUrlLines", |
82
|
|
|
|
|
|
|
{ 'foreign.chart_line_id' => 'self.chart_line_id' }, |
83
|
|
|
|
|
|
|
); |
84
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
85
|
|
|
|
|
|
|
chart_line_restrictions => "${basepkg}::ChartLineRestrictions", |
86
|
|
|
|
|
|
|
{ 'foreign.chart_line_id' => 'self.chart_line_id' }, |
87
|
|
|
|
|
|
|
); |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
__END__ |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=pod |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=encoding UTF-8 |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 NAME |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::ChartLines - Tapper - Keep Chart Lines for Charts |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 AUTHORS |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=over 4 |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item * |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=item * |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=back |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
This is free software, licensed under: |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=cut |