2 package Debbugs::DB::Result::BugSrcpackage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugSrcpackage - Bug <-> source 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_srcpackage>
36 __PACKAGE__->table("bug_srcpackage");
54 Source package id (matches src_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_srcpackage_id_pkg>
79 __PACKAGE__->add_unique_constraint("bug_srcpackage_id_pkg", ["bug", "src_pkg"]);
87 Related object: L<Debbugs::DB::Result::Bug>
91 __PACKAGE__->belongs_to(
93 "Debbugs::DB::Result::Bug",
95 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
102 Related object: L<Debbugs::DB::Result::SrcPkg>
106 __PACKAGE__->belongs_to(
108 "Debbugs::DB::Result::SrcPkg",
110 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
114 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SduyMaGHABDrX19Cxg4fg
117 sub sqlt_deploy_hook {
118 my ($self, $sqlt_table) = @_;
119 $sqlt_table->add_index(name => 'bug_srcpackage_src_pkg_idx',
120 fields => [qw(src_pkg)],