2 package Debbugs::DB::Result::BugTag;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugTag - Bug <-> tag 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_tag>
36 __PACKAGE__->table("bug_tag");
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_tag_bug_tag>
79 __PACKAGE__->add_unique_constraint("bug_tag_bug_tag", ["bug", "tag"]);
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::Tag>
106 __PACKAGE__->belongs_to(
108 "Debbugs::DB::Result::Tag",
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:yyHP5f8zAxn/AdjOCr8WAg
118 sub sqlt_deploy_hook {
119 my ($self, $sqlt_table) = @_;
120 $sqlt_table->add_index(name => 'bug_tag_tag',