summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-01-20 23:25:01 +0000
committerivan <ivan>2008-01-20 23:25:01 +0000
commitc0aae833fb562800487c10bed0769111c62b8ef9 (patch)
tree28baa401f14974f8d21b8b9407232e5ac26f897b
parent4c165a5ba8e6d371c79be49a96dcef784284cf29 (diff)
add and fix some indices, this should marginally (but not drastically) improve the time to pull up A/R report totals
-rw-r--r--FS/FS/Schema.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index af8a6a652..94fd66ac0 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -437,7 +437,7 @@ sub tables_hashref {
],
'primary_key' => 'crednum',
'unique' => [],
- 'index' => [ ['custnum'] ],
+ 'index' => [ ['custnum'], ['_date'] ],
},
'cust_credit_bill' => {
@@ -613,7 +613,6 @@ sub tables_hashref {
'cust_pay' => {
'columns' => [
'paynum', 'serial', '', '', '', '',
- #now cust_bill_pay #'invnum', 'int', '', '', '', '',
'custnum', 'int', '', '', '', '',
'paid', @money_type, '', '',
'_date', @date_type, '', '',
@@ -792,7 +791,6 @@ sub tables_hashref {
'cust_refund' => {
'columns' => [
'refundnum', 'serial', '', '', '', '',
- #now cust_credit_refund #'crednum', 'int', '', '', '', '',
'custnum', 'int', '', '', '', '',
'_date', @date_type, '', '',
'refund', @money_type, '', '',
@@ -808,7 +806,7 @@ sub tables_hashref {
],
'primary_key' => 'refundnum',
'unique' => [],
- 'index' => [],
+ 'index' => [ ['custnum'], ['_date'] ],
},
'cust_credit_refund' => {
@@ -821,7 +819,7 @@ sub tables_hashref {
],
'primary_key' => 'creditrefundnum',
'unique' => [],
- 'index' => [ [ 'crednum', 'refundnum' ] ],
+ 'index' => [ ['crednum'], ['refundnum'] ],
},