]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Suite.pm
handle affects properly and upgrade schema
[debbugs.git] / Debbugs / DB / Result / Suite.pm
1 use utf8;
2 package Debbugs::DB::Result::Suite;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::Suite - Debian Release Suite (stable, testing, etc.)
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<suite>
33
34 =cut
35
36 __PACKAGE__->table("suite");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'suite_id_seq'
46
47 Suite id
48
49 =head2 suite_name
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Suite name
55
56 =head2 version
57
58   data_type: 'text'
59   is_nullable: 1
60
61 Suite version; NULL if there is no appropriate version
62
63 =head2 codename
64
65   data_type: 'text'
66   is_nullable: 1
67
68 Suite codename
69
70 =head2 active
71
72   data_type: 'boolean'
73   default_value: true
74   is_nullable: 1
75
76 TRUE if the suite is still accepting uploads
77
78 =cut
79
80 __PACKAGE__->add_columns(
81   "id",
82   {
83     data_type         => "integer",
84     is_auto_increment => 1,
85     is_nullable       => 0,
86     sequence          => "suite_id_seq",
87   },
88   "suite_name",
89   { data_type => "text", is_nullable => 0 },
90   "version",
91   { data_type => "text", is_nullable => 1 },
92   "codename",
93   { data_type => "text", is_nullable => 1 },
94   "active",
95   { data_type => "boolean", default_value => \"true", is_nullable => 1 },
96 );
97
98 =head1 PRIMARY KEY
99
100 =over 4
101
102 =item * L</id>
103
104 =back
105
106 =cut
107
108 __PACKAGE__->set_primary_key("id");
109
110 =head1 UNIQUE CONSTRAINTS
111
112 =head2 C<suite_suite_name_key>
113
114 =over 4
115
116 =item * L</suite_name>
117
118 =back
119
120 =cut
121
122 __PACKAGE__->add_unique_constraint("suite_suite_name_key", ["suite_name"]);
123
124 =head1 RELATIONS
125
126 =head2 bin_associations
127
128 Type: has_many
129
130 Related object: L<Debbugs::DB::Result::BinAssociation>
131
132 =cut
133
134 __PACKAGE__->has_many(
135   "bin_associations",
136   "Debbugs::DB::Result::BinAssociation",
137   { "foreign.suite" => "self.id" },
138   { cascade_copy => 0, cascade_delete => 0 },
139 );
140
141 =head2 bug_status_caches
142
143 Type: has_many
144
145 Related object: L<Debbugs::DB::Result::BugStatusCache>
146
147 =cut
148
149 __PACKAGE__->has_many(
150   "bug_status_caches",
151   "Debbugs::DB::Result::BugStatusCache",
152   { "foreign.suite" => "self.id" },
153   { cascade_copy => 0, cascade_delete => 0 },
154 );
155
156 =head2 src_associations
157
158 Type: has_many
159
160 Related object: L<Debbugs::DB::Result::SrcAssociation>
161
162 =cut
163
164 __PACKAGE__->has_many(
165   "src_associations",
166   "Debbugs::DB::Result::SrcAssociation",
167   { "foreign.suite" => "self.id" },
168   { cascade_copy => 0, cascade_delete => 0 },
169 );
170
171
172 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
173 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3csVa5t/HsPdWr0/Nmr7WA
174
175
176 # You can replace this text with custom code or comments, and it will be preserved on regeneration
177 1;