summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-07-20 13:46:11 +0000
committerivan <ivan>2011-07-20 13:46:11 +0000
commit652b2d9f68a558d03dbf441fd28ad17e847dff42 (patch)
treed844a34de803325ddb3b072072374198aff402d1
parentf460000a78d4e74881051e1999197ddab3b1b81d (diff)
fix missing banned_pay index
-rw-r--r--FS/FS/Schema.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 866aa259a..1aa2b69c4 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -117,6 +117,7 @@ sub dbdef_dist {
#false laziness w/sub indices in DBIx::DBSchema::DBD (well, sorta)
#and sub sql_create_table in DBIx::DBSchema::Table (slighty more?)
my $unique = $tables_hashref->{$tablename}{'unique'};
+ warn "missing index for $tablename\n" unless defined $tables_hashref->{$tablename}{'index'};
my @index = @{ $tables_hashref->{$tablename}{'index'} };
# kludge to avoid avoid "BLOB/TEXT column 'statustext' used in key
@@ -2491,7 +2492,7 @@ sub tables_hashref {
],
'primary_key' => 'bannum',
'unique' => [],
- 'index ' => [ [ 'payby', 'payinfo' ], [ 'usernum' ], ],
+ 'index' => [ [ 'payby', 'payinfo' ], [ 'usernum' ], ],
},
'pkg_category' => {