2 package Debbugs::DB::Result::BugBinpackage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugBinpackage - Bug <-> binary package mapping
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<bug_binpackage>
36 __PACKAGE__->table("bug_binpackage");
54 Binary package id (matches bin_pkg)
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
65 =head1 UNIQUE CONSTRAINTS
67 =head2 C<bug_binpackage_bin_pkg_bug_idx>
79 __PACKAGE__->add_unique_constraint("bug_binpackage_bin_pkg_bug_idx", ["bin_pkg", "bug"]);
81 =head2 C<bug_binpackage_id_pkg>
93 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg", ["bug", "bin_pkg"]);
101 Related object: L<Debbugs::DB::Result::BinPkg>
105 __PACKAGE__->belongs_to(
107 "Debbugs::DB::Result::BinPkg",
109 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
116 Related object: L<Debbugs::DB::Result::Bug>
120 __PACKAGE__->belongs_to(
122 "Debbugs::DB::Result::Bug",
124 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
128 # Created by DBIx::Class::Schema::Loader v0.07048 @ 2018-04-20 10:29:04
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PJ2U+jVEO2uKfwgCYtho1A
132 sub sqlt_deploy_hook {
133 my ($self, $sqlt_table) = @_;
134 $sqlt_table->add_index(name => 'bug_binpackage_bin_pkg_idx',
135 fields => [qw(bin_pkg)],