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>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<src_ver>
36 __PACKAGE__->table("src_ver");
45 sequence: 'src_ver_id_seq'
47 Source package version id
55 Source package id (matches src_pkg table)
59 data_type: 'debversion'
62 Version of the source package
70 Maintainer id (matches maintainer table)
74 data_type: 'timestamp with time zone'
75 default_value: current_timestamp
77 original: {default_value => \"now()"}
79 Date this version of the source package was uploaded
87 Source package version this version is based on
91 __PACKAGE__->add_columns(
94 data_type => "integer",
95 is_auto_increment => 1,
97 sequence => "src_ver_id_seq",
100 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
102 { data_type => "debversion", is_nullable => 0 },
104 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
107 data_type => "timestamp with time zone",
108 default_value => \"current_timestamp",
110 original => { default_value => \"now()" },
113 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
126 __PACKAGE__->set_primary_key("id");
128 =head1 UNIQUE CONSTRAINTS
130 =head2 C<src_ver_src_pkg_id_ver>
142 __PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg", "ver"]);
150 Related object: L<Debbugs::DB::Result::SrcVer>
154 __PACKAGE__->belongs_to(
156 "Debbugs::DB::Result::SrcVer",
157 { id => "based_on" },
161 on_delete => "CASCADE",
162 on_update => "CASCADE",
170 Related object: L<Debbugs::DB::Result::BinVer>
174 __PACKAGE__->has_many(
176 "Debbugs::DB::Result::BinVer",
177 { "foreign.src_ver" => "self.id" },
178 { cascade_copy => 0, cascade_delete => 0 },
185 Related object: L<Debbugs::DB::Result::BugVer>
189 __PACKAGE__->has_many(
191 "Debbugs::DB::Result::BugVer",
192 { "foreign.src_ver" => "self.id" },
193 { cascade_copy => 0, cascade_delete => 0 },
200 Related object: L<Debbugs::DB::Result::Maintainer>
204 __PACKAGE__->belongs_to(
206 "Debbugs::DB::Result::Maintainer",
207 { id => "maintainer" },
211 on_delete => "SET NULL",
212 on_update => "CASCADE",
216 =head2 src_associations
220 Related object: L<Debbugs::DB::Result::SrcAssociation>
224 __PACKAGE__->has_many(
226 "Debbugs::DB::Result::SrcAssociation",
227 { "foreign.source" => "self.id" },
228 { cascade_copy => 0, cascade_delete => 0 },
235 Related object: L<Debbugs::DB::Result::SrcPkg>
239 __PACKAGE__->belongs_to(
241 "Debbugs::DB::Result::SrcPkg",
243 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
250 Related object: L<Debbugs::DB::Result::SrcVer>
254 __PACKAGE__->has_many(
256 "Debbugs::DB::Result::SrcVer",
257 { "foreign.based_on" => "self.id" },
258 { cascade_copy => 0, cascade_delete => 0 },
262 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
263 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gY5LidUaQeuJ5AnN06CfKQ
266 # You can replace this text with custom code or comments, and it will be preserved on regeneration