File Coverage

blib/lib/Perl5/CoreSmokeDB/Schema/Result/Failure.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 3     3   1422 use utf8;
  3         7  
  3         16  
2              
3             # Created by DBIx::Class::Schema::Loader
4             # DO NOT MODIFY THE FIRST PART OF THIS FILE
5              
6             =head1 NAME
7              
8             Perl5::CoreSmokeDB::Schema::Result::Failure
9              
10             =cut
11              
12             use strict;
13 3     3   130 use warnings;
  3         6  
  3         53  
14 3     3   12  
  3         13  
  3         76  
15             use base 'DBIx::Class::Core';
16 3     3   13  
  3         6  
  3         591  
17             =head1 COMPONENTS LOADED
18              
19             =over 4
20              
21             =item * L<DBIx::Class::InflateColumn::DateTime>
22              
23             =back
24              
25             =cut
26              
27             __PACKAGE__->load_components("InflateColumn::DateTime");
28              
29             =head1 TABLE: C<failure>
30              
31             =cut
32              
33             __PACKAGE__->table("failure");
34              
35             =head1 ACCESSORS
36              
37             =head2 id
38              
39             data_type: 'integer'
40             is_auto_increment: 1
41             is_nullable: 0
42             sequence: 'failure_id_seq'
43              
44             =head2 test
45              
46             data_type: 'text'
47             is_nullable: 0
48             original: {data_type => "varchar"}
49              
50             =head2 status
51              
52             data_type: 'text'
53             is_nullable: 0
54             original: {data_type => "varchar"}
55              
56             =head2 extra
57              
58             data_type: 'text'
59             is_nullable: 1
60             original: {data_type => "varchar"}
61              
62             =cut
63              
64             __PACKAGE__->add_columns(
65             "id",
66             {
67             data_type => "integer",
68             is_auto_increment => 1,
69             is_nullable => 0,
70             sequence => "failure_id_seq",
71             },
72             "test",
73             {
74             data_type => "text",
75             is_nullable => 0,
76             original => { data_type => "varchar" },
77             },
78             "status",
79             {
80             data_type => "text",
81             is_nullable => 0,
82             original => { data_type => "varchar" },
83             },
84             "extra",
85             {
86             data_type => "text",
87             is_nullable => 1,
88             original => { data_type => "varchar" },
89             },
90             );
91              
92             =head1 PRIMARY KEY
93              
94             =over 4
95              
96             =item * L</id>
97              
98             =back
99              
100             =cut
101              
102             __PACKAGE__->set_primary_key("id");
103              
104             =head1 UNIQUE CONSTRAINTS
105              
106             =head2 C<failure_test_status_extra_key>
107              
108             =over 4
109              
110             =item * L</test>
111              
112             =item * L</status>
113              
114             =item * L</extra>
115              
116             =back
117              
118             =cut
119              
120             __PACKAGE__->add_unique_constraint("failure_test_status_extra_key", ["test", "status", "extra"]);
121              
122             =head1 RELATIONS
123              
124             =head2 failures_for_env
125              
126             Type: has_many
127              
128             Related object: L<Perl5::CoreSmokeDB::Schema::Result::FailureForEnv>
129              
130             =cut
131              
132             __PACKAGE__->has_many(
133             "failures_for_env",
134             "Perl5::CoreSmokeDB::Schema::Result::FailureForEnv",
135             { "foreign.failure_id" => "self.id" },
136             { cascade_copy => 0, cascade_delete => 0 },
137             );
138              
139              
140             # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-06 09:15:22
141             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:47DdjPyTSksgr5Z6Dw+HgA
142              
143              
144             # You can replace this text with custom code or comments, and it will be preserved on regeneration
145             1;