2 package Debbugs::DB::Result::BugMessage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugMessage
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_message>
36 __PACKAGE__->table("bug_message");
54 Message id (matches message)
61 Message number in the bug log
68 Byte offset in the bug log
72 data_type: 'timestamp with time zone'
79 __PACKAGE__->add_columns(
81 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 { data_type => "integer", is_nullable => 0 },
87 { data_type => "integer", is_nullable => 1 },
89 { data_type => "timestamp with time zone", is_nullable => 1 },
92 =head1 UNIQUE CONSTRAINTS
94 =head2 C<bug_message_bug_message_idx>
106 __PACKAGE__->add_unique_constraint("bug_message_bug_message_idx", ["bug", "message"]);
114 Related object: L<Debbugs::DB::Result::Bug>
118 __PACKAGE__->belongs_to(
120 "Debbugs::DB::Result::Bug",
122 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
129 Related object: L<Debbugs::DB::Result::Message>
133 __PACKAGE__->belongs_to(
135 "Debbugs::DB::Result::Message",
137 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
141 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRbN9C6P/wvWWmSmjNGjLA
144 sub sqlt_deploy_hook {
145 my ($self, $sqlt_table) = @_;
146 $sqlt_table->add_index(name => 'bug_message_idx_bug_message_number',
147 fields => [qw(bug message_number)],