2 package Debbugs::DB::Result::BugMerged;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugMerged - Bugs which are merged with other bugs
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_merged>
36 __PACKAGE__->table("bug_merged");
45 sequence: 'bug_merged_id_seq'
61 Bug number which is merged with bug
65 __PACKAGE__->add_columns(
68 data_type => "integer",
69 is_auto_increment => 1,
71 sequence => "bug_merged_id_seq",
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
89 __PACKAGE__->set_primary_key("id");
91 =head1 UNIQUE CONSTRAINTS
93 =head2 C<bug_merged_bug_id_merged_idx>
105 __PACKAGE__->add_unique_constraint("bug_merged_bug_id_merged_idx", ["bug", "merged"]);
113 Related object: L<Debbugs::DB::Result::Bug>
117 __PACKAGE__->belongs_to(
119 "Debbugs::DB::Result::Bug",
121 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
128 Related object: L<Debbugs::DB::Result::Bug>
132 __PACKAGE__->belongs_to(
134 "Debbugs::DB::Result::Bug",
136 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
140 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
141 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HdGeCb1Fh2cU08+TTQVi/Q
143 sub sqlt_deploy_hook {
144 my ($self, $sqlt_table) = @_;
145 for my $idx (qw(bug merged)) {
146 $sqlt_table->add_index(name => 'bug_merged_'.$idx.'_idx',