From: jeff Date: Thu, 18 Sep 2008 23:18:20 +0000 (+0000) Subject: trade space for time X-Git-Tag: freeside_1_7_4rc1~179 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=ade0ddb52eaab4999864035f83e5d2393ef89c26;p=freeside.git trade space for time --- diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index bfbdfb96f..da75899aa 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', @@ -496,6 +504,7 @@ sub tables_hashref { 'stateid_state', 'varchar', 'NULL', $char_d, '', '', 'birthdate' ,@date_type, '', '', 'signupdate',@date_type, '', '', + 'dundate', @date_type, '', '', 'company', 'varchar', 'NULL', $char_d, '', '', 'address1', 'varchar', '', $char_d, '', '', 'address2', 'varchar', 'NULL', $char_d, '', '',