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