summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-07-20 13:46:10 +0000
committerivan <ivan>2011-07-20 13:46:10 +0000
commit214f0bb42fc4b59d9111274b6255ebaafaac35ef (patch)
tree9e20414d550c4e0fac549aa1f9fbac8231cf566d
parentf05e5e44e3472e70f121f264ed39bd708673bcf7 (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 9cf644bac..168fae0ff 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
@@ -2762,7 +2763,7 @@ sub tables_hashref {
],
'primary_key' => 'bannum',
'unique' => [],
- 'index ' => [ [ 'payby', 'payinfo' ], [ 'usernum' ], ],
+ 'index' => [ [ 'payby', 'payinfo' ], [ 'usernum' ], ],
},
'pkg_category' => {