From: jeff Date: Thu, 18 Sep 2008 23:17:01 +0000 (+0000) Subject: trade space for time X-Git-Tag: root_of_webpay_support~352 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4c1394f92330b2fd21dc56c988d7fac05b18cd28 trade space for time --- diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 22bd19ef3..b3cce9a93 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -200,6 +200,14 @@ sub dbdef_dist { ], }); + $h_indices{"h_${table}_srckey2"} = DBIx::DBSchema::Index->new({ + 'name' => "h_${table}_srckey2", + 'unique' => 0, + 'columns' => [ 'history_date', + $tableobj->primary_key, + ], + }); + my $h_tableobj = DBIx::DBSchema::Table->new( { 'name' => "h_$table", 'primary_key' => 'historynum',