2 package Debbugs::DB::Result::SrcVer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::SrcVer - Source Package versions
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<src_ver>
34 __PACKAGE__->table("src_ver");
43 sequence: 'src_ver_id_seq'
45 Source package version id
53 Source package id (matches src_pkg table)
57 data_type: 'debversion'
60 Version of the source package
68 Maintainer id (matches maintainer table)
72 data_type: 'timestamp with time zone'
73 default_value: current_timestamp
75 original: {default_value => \"now()"}
77 Date this version of the source package was uploaded
85 Source package version this version is based on
89 __PACKAGE__->add_columns(
92 data_type => "integer",
93 is_auto_increment => 1,
95 sequence => "src_ver_id_seq",
98 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
100 { data_type => "debversion", is_nullable => 0 },
102 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
105 data_type => "timestamp with time zone",
106 default_value => \"current_timestamp",
108 original => { default_value => \"now()" },
111 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
124 __PACKAGE__->set_primary_key("id");
126 =head1 UNIQUE CONSTRAINTS
128 =head2 C<src_ver_src_pkg_id_ver>
140 __PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg", "ver"]);
148 Related object: L<Debbugs::DB::Result::SrcVer>
152 __PACKAGE__->belongs_to(
154 "Debbugs::DB::Result::SrcVer",
155 { id => "based_on" },
159 on_delete => "CASCADE",
160 on_update => "CASCADE",
168 Related object: L<Debbugs::DB::Result::BinVer>
172 __PACKAGE__->has_many(
174 "Debbugs::DB::Result::BinVer",
175 { "foreign.src_ver" => "self.id" },
176 { cascade_copy => 0, cascade_delete => 0 },
183 Related object: L<Debbugs::DB::Result::BugVer>
187 __PACKAGE__->has_many(
189 "Debbugs::DB::Result::BugVer",
190 { "foreign.src_ver" => "self.id" },
191 { cascade_copy => 0, cascade_delete => 0 },
198 Related object: L<Debbugs::DB::Result::Maintainer>
202 __PACKAGE__->belongs_to(
204 "Debbugs::DB::Result::Maintainer",
205 { id => "maintainer" },
209 on_delete => "SET NULL",
210 on_update => "CASCADE",
214 =head2 src_associations
218 Related object: L<Debbugs::DB::Result::SrcAssociation>
222 __PACKAGE__->has_many(
224 "Debbugs::DB::Result::SrcAssociation",
225 { "foreign.source" => "self.id" },
226 { cascade_copy => 0, cascade_delete => 0 },
233 Related object: L<Debbugs::DB::Result::SrcPkg>
237 __PACKAGE__->belongs_to(
239 "Debbugs::DB::Result::SrcPkg",
241 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
248 Related object: L<Debbugs::DB::Result::SrcVer>
252 __PACKAGE__->has_many(
254 "Debbugs::DB::Result::SrcVer",
255 { "foreign.based_on" => "self.id" },
256 { cascade_copy => 0, cascade_delete => 0 },
260 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 21:57:41
261 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pp9Uh44hbBpvnLdssezZ9Q
264 # You can replace this text with custom code or comments, and it will be preserved on regeneration