X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FBugMessage.pm;h=b5fccc558984ef1c1f641dbbfdadaa0bccee1e8e;hb=466f7faff129a5699c7674f59900a92aa256175d;hp=b2aa87cae9b9c5af40df05d2e3688b43dfcfca02;hpb=e82ae2e77eca2fea1d5f1e5e57fa0f0dae9db2ca;p=debbugs.git diff --git a/Debbugs/DB/Result/BugMessage.pm b/Debbugs/DB/Result/BugMessage.pm index b2aa87c..b5fccc5 100644 --- a/Debbugs/DB/Result/BugMessage.pm +++ b/Debbugs/DB/Result/BugMessage.pm @@ -37,13 +37,6 @@ __PACKAGE__->table("bug_message"); =head1 ACCESSORS -=head2 id - - data_type: 'integer' - is_auto_increment: 1 - is_nullable: 0 - sequence: 'bug_message_id_seq' - =head2 bug data_type: 'integer' @@ -84,13 +77,6 @@ Time offset was valid =cut __PACKAGE__->add_columns( - "id", - { - data_type => "integer", - is_auto_increment => 1, - is_nullable => 0, - sequence => "bug_message_id_seq", - }, "bug", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "message", @@ -103,18 +89,6 @@ __PACKAGE__->add_columns( { data_type => "timestamp with time zone", is_nullable => 1 }, ); -=head1 PRIMARY KEY - -=over 4 - -=item * L - -=back - -=cut - -__PACKAGE__->set_primary_key("id"); - =head1 UNIQUE CONSTRAINTS =head2 C @@ -164,9 +138,13 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gof8IcnKupbpDmbU39kx6A - +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRbN9C6P/wvWWmSmjNGjLA -# You can replace this text with custom code or comments, and it will be preserved on regeneration +sub sqlt_deploy_hook { + my ($self, $sqlt_table) = @_; + $sqlt_table->add_index(name => 'bug_message_idx_bug_message_number', + fields => [qw(bug message_number)], + ); +} 1;