summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-05-19 04:29:03 +0000
committerivan <ivan>2008-05-19 04:29:03 +0000
commit529285e6b02483f10df42fb1ac25f711a48826f4 (patch)
treef223334ecd4b5ac6c8be032a86c20ec530c368df
parent93810e2d18325d6f3b56cb3738d4400af69e6908 (diff)
add a key on ( history_action, $primary_key ) to the h_ tables. this should speed up the cust_pay upgrade??
-rw-r--r--FS/FS/Schema.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index e72cfa9a1..ed652012f 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -192,6 +192,14 @@ sub dbdef_dist {
}
keys %indices;
+ $h_indices{"h_${table}_srckey"} = DBIx::DBSchema::Index->new({
+ 'name' => "h_${table}_srckey",
+ 'unique' => 0,
+ 'columns' => [ 'history_action', #right?
+ $tableobj->primary_key,
+ ],
+ });
+
my $h_tableobj = DBIx::DBSchema::Table->new( {
'name' => "h_$table",
'primary_key' => 'historynum',