=head1 NAME
-Debbugs::DB::Result::BinVer
+Debbugs::DB::Result::BinVer - Binary versions
=cut
is_nullable: 0
sequence: 'bin_ver_id_seq'
-=head2 bin_pkg_id
+Binary version id
+
+=head2 bin_pkg
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
+Binary package id (matches bin_pkg)
+
=head2 src_ver_id
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
+Source version (matchines src_ver)
+
=head2 arch_id
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
+Architecture id (matches arch)
+
=head2 ver
data_type: 'debversion'
is_nullable: 0
+Binary version
+
=cut
__PACKAGE__->add_columns(
is_nullable => 0,
sequence => "bin_ver_id_seq",
},
- "bin_pkg_id",
+ "bin_pkg",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"src_ver_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
=over 4
-=item * L</bin_pkg_id>
+=item * L</bin_pkg>
=item * L</arch_id>
=cut
-__PACKAGE__->add_unique_constraint(
- "bin_ver_bin_pkg_id_arch_idx",
- ["bin_pkg_id", "arch_id", "ver"],
-);
+__PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg", "arch_id", "ver"]);
=head2 C<bin_ver_src_ver_id_arch_idx>
"arch",
"Debbugs::DB::Result::Arch",
{ id => "arch_id" },
- { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+ { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 bin_associations
__PACKAGE__->belongs_to(
"bin_pkg",
"Debbugs::DB::Result::BinPkg",
- { id => "bin_pkg_id" },
- { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+ { id => "bin_pkg" },
+ { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
);
=head2 src_ver
"src_ver",
"Debbugs::DB::Result::SrcVer",
{ id => "src_ver_id" },
- { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+ { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
);
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ID7wx8HJaYZgpdhHqCq8GQ
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FQGstQI5fa/5pJhSi7AtYg
# You can replace this text with custom code or comments, and it will be preserved on regeneration