line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Charts; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Charts::VERSION = '5.0.11'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Keep Charts for Tapper-Reports-Web-GUI |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3485
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
180
|
|
7
|
7
|
|
|
7
|
|
34
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
162
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
31
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
34
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); |
12
|
|
|
|
|
|
|
__PACKAGE__->table('charts'); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
'chart_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
|
|
|
|
|
|
|
'active', { |
25
|
|
|
|
|
|
|
data_type => 'TINYINT', |
26
|
|
|
|
|
|
|
default_value => 0, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
size => 4, |
29
|
|
|
|
|
|
|
extra => { |
30
|
|
|
|
|
|
|
unsigned => 1, |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
'created_at', { |
34
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
35
|
|
|
|
|
|
|
default_value => undef, |
36
|
|
|
|
|
|
|
is_nullable => 0, |
37
|
|
|
|
|
|
|
set_on_create => 1, |
38
|
|
|
|
|
|
|
}, |
39
|
|
|
|
|
|
|
'updated_at', { |
40
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
41
|
|
|
|
|
|
|
default_value => undef, |
42
|
|
|
|
|
|
|
is_nullable => 1, |
43
|
|
|
|
|
|
|
}, |
44
|
|
|
|
|
|
|
); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('chart_id'); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
52
|
|
|
|
|
|
|
chart_versions => 'Tapper::Schema::TestrunDB::Result::ChartVersions', |
53
|
|
|
|
|
|
|
{ 'foreign.chart_id' => 'self.chart_id' }, |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
56
|
|
|
|
|
|
|
chart_tag_relations => 'Tapper::Schema::TestrunDB::Result::ChartTagRelations', |
57
|
|
|
|
|
|
|
{ 'foreign.chart_id' => 'self.chart_id' }, |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=pod |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=encoding UTF-8 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 NAME |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Charts - Tapper - Keep Charts for Tapper-Reports-Web-GUI |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHORS |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=over 4 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item * |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item * |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=back |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This is free software, licensed under: |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |