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_id_pkg>
79 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg", ["bug", "bin_pkg"]);
87 Related object: L<Debbugs::DB::Result::BinPkg>
91 __PACKAGE__->belongs_to(
93 "Debbugs::DB::Result::BinPkg",
95 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
102 Related object: L<Debbugs::DB::Result::Bug>
106 __PACKAGE__->belongs_to(
108 "Debbugs::DB::Result::Bug",
110 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
114 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wL+pwSCfWe/mMQOjziKSeg
118 sub sqlt_deploy_hook {
119 my ($self, $sqlt_table) = @_;
120 $sqlt_table->add_index(name => 'bug_binpackage_bin_pkg_idx',
121 fields => [qw(bin_pkg)],