line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::ChartTags; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::ChartTags::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Keep Chart Tags for Tapper-Reports-Web-GUI |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
2922
|
use strict; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
170
|
|
7
|
7
|
|
|
7
|
|
22
|
use warnings; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
153
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
24
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
28
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); |
12
|
|
|
|
|
|
|
__PACKAGE__->table('chart_tags'); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
'chart_tag_id', { |
15
|
|
|
|
|
|
|
data_type => 'SMALLINT', |
16
|
|
|
|
|
|
|
default_value => undef, |
17
|
|
|
|
|
|
|
is_nullable => 0, |
18
|
|
|
|
|
|
|
size => 6, |
19
|
|
|
|
|
|
|
is_auto_increment => 1, |
20
|
|
|
|
|
|
|
extra => { |
21
|
|
|
|
|
|
|
unsigned => 1, |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
'chart_tag', { |
25
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
26
|
|
|
|
|
|
|
default_value => undef, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
size => 64, |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
'created_at', { |
31
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
32
|
|
|
|
|
|
|
default_value => undef, |
33
|
|
|
|
|
|
|
is_nullable => 0, |
34
|
|
|
|
|
|
|
set_on_create => 1, |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('chart_tag_id'); |
42
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( |
43
|
|
|
|
|
|
|
ux_chart_tags_01 => [ 'chart_tag' ], |
44
|
|
|
|
|
|
|
); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
47
|
|
|
|
|
|
|
chart_versions => 'Tapper::Schema::TestrunDB::Result::ChartTagRelations', |
48
|
|
|
|
|
|
|
{ 'foreign.chart_tag_id' => 'self.chart_tag_id' }, |
49
|
|
|
|
|
|
|
); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=pod |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=encoding UTF-8 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 NAME |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::ChartTags - Tapper - Keep Chart Tags for Tapper-Reports-Web-GUI |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHORS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software, licensed under: |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |