From: ivan Date: Mon, 19 May 2008 04:29:01 +0000 (+0000) Subject: add a key on ( history_action, $primary_key ) to the h_ tables. this should speed... X-Git-Tag: root_of_webpay_support~640 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=48c79870d414b579eb8163dbae1a22941b183f22 add a key on ( history_action, $primary_key ) to the h_ tables. this should speed up the cust_pay upgrade?? --- diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 457e5c80d..9e7b07f19 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',