| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::ChartLineRestrictions; |
|
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
|
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::ChartLineRestrictions::VERSION = '5.0.11'; |
|
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Keep Chart Line Restrictions for Charts |
|
5
|
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
20554
|
use strict; |
|
|
7
|
|
|
|
|
32
|
|
|
|
7
|
|
|
|
|
183
|
|
|
7
|
7
|
|
|
7
|
|
31
|
use warnings; |
|
|
7
|
|
|
|
|
13
|
|
|
|
7
|
|
|
|
|
172
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
33
|
use parent 'DBIx::Class'; |
|
|
7
|
|
|
|
|
14
|
|
|
|
7
|
|
|
|
|
37
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/FilterColumn InflateColumn::DateTime Core/); |
|
12
|
|
|
|
|
|
|
__PACKAGE__->table('chart_line_restrictions'); |
|
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
14
|
|
|
|
|
|
|
'chart_line_restriction_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_line_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_restriction_operator' , { |
|
35
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
|
36
|
|
|
|
|
|
|
default_value => undef, |
|
37
|
|
|
|
|
|
|
is_nullable => 0, |
|
38
|
|
|
|
|
|
|
size => 4, |
|
39
|
|
|
|
|
|
|
}, |
|
40
|
|
|
|
|
|
|
'chart_line_restriction_column' , { |
|
41
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
|
42
|
|
|
|
|
|
|
default_value => undef, |
|
43
|
|
|
|
|
|
|
is_nullable => 0, |
|
44
|
|
|
|
|
|
|
size => 512, |
|
45
|
|
|
|
|
|
|
}, |
|
46
|
|
|
|
|
|
|
'is_template_restriction', { |
|
47
|
|
|
|
|
|
|
data_type => 'TINYINT', |
|
48
|
|
|
|
|
|
|
default_value => undef, |
|
49
|
|
|
|
|
|
|
is_nullable => 0, |
|
50
|
|
|
|
|
|
|
size => 3, |
|
51
|
|
|
|
|
|
|
extra => { |
|
52
|
|
|
|
|
|
|
unsigned => 1, |
|
53
|
|
|
|
|
|
|
}, |
|
54
|
|
|
|
|
|
|
}, |
|
55
|
|
|
|
|
|
|
'is_numeric_restriction', { |
|
56
|
|
|
|
|
|
|
data_type => 'TINYINT', |
|
57
|
|
|
|
|
|
|
default_value => undef, |
|
58
|
|
|
|
|
|
|
is_nullable => 0, |
|
59
|
|
|
|
|
|
|
size => 3, |
|
60
|
|
|
|
|
|
|
extra => { |
|
61
|
|
|
|
|
|
|
unsigned => 1, |
|
62
|
|
|
|
|
|
|
}, |
|
63
|
|
|
|
|
|
|
}, |
|
64
|
|
|
|
|
|
|
'created_at', { |
|
65
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
|
66
|
|
|
|
|
|
|
default_value => undef, |
|
67
|
|
|
|
|
|
|
is_nullable => 0, |
|
68
|
|
|
|
|
|
|
set_on_create => 1, |
|
69
|
|
|
|
|
|
|
}, |
|
70
|
|
|
|
|
|
|
); |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('chart_line_restriction_id'); |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
78
|
|
|
|
|
|
|
chart_line => "${basepkg}::ChartLines", |
|
79
|
|
|
|
|
|
|
{ 'foreign.chart_line_id' => 'self.chart_line_id' }, |
|
80
|
|
|
|
|
|
|
); |
|
81
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
|
82
|
|
|
|
|
|
|
chart_line_restriction_values => "${basepkg}::ChartLineRestrictionValues", |
|
83
|
|
|
|
|
|
|
{ 'foreign.chart_line_restriction_id' => 'self.chart_line_restriction_id' }, |
|
84
|
|
|
|
|
|
|
); |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
1; |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
__END__ |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=pod |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=encoding UTF-8 |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 NAME |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::ChartLineRestrictions - Tapper - Keep Chart Line Restrictions for Charts |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 AUTHORS |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=over 4 |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item * |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=back |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This is free software, licensed under: |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=cut |