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