X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FBugBlock.pm;h=0200a313657d0fe0c4996ddf8960039aa9c91f8a;hb=466f7faff129a5699c7674f59900a92aa256175d;hp=467ab6846db7496e4e3a13c40ea869368083096b;hpb=e82ae2e77eca2fea1d5f1e5e57fa0f0dae9db2ca;p=debbugs.git diff --git a/Debbugs/DB/Result/BugBlock.pm b/Debbugs/DB/Result/BugBlock.pm index 467ab68..0200a31 100644 --- a/Debbugs/DB/Result/BugBlock.pm +++ b/Debbugs/DB/Result/BugBlock.pm @@ -141,5 +141,12 @@ __PACKAGE__->belongs_to( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rkt0XlA4r2YFX0KnUZmS6A -# 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) = @_; + for my $idx (qw(bug blocks)) { + $sqlt_table->add_index(name => 'bug_blocks_'.$idx.'_idx', + fields => [$idx]); + } +} + 1;