]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/MessageCorrespondent.pm
fix var typo and add in missing correspondent index
[debbugs.git] / Debbugs / DB / Result / MessageCorrespondent.pm
index 16550aa00b579f31e16145dda4068e9cbcac859a..ddc79d11db3ae7e118c3e4814f460b7d3d863a45 100644 (file)
@@ -139,5 +139,12 @@ __PACKAGE__->belongs_to(
 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kIhya7skj4ZNM3DkC+gAPw
 
 
-# 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(correspondent message)) {
+       $sqlt_table->add_index(name => 'message_correspondent_idx'.$idx,
+                              fields => [$idx]);
+    }
+}
+
 1;