X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSchema.pm;h=9f9770c31e311e3a189e892a81f7ca5e5a33efbf;hb=6af1b1bfa25e5ececef5e0dcd38b55917121cee2;hp=b3d8a56f12d5ddbac34ebc75a88af117be19aa37;hpb=4845aaefedfcbaa25716694b6d80f3dd6d56530a;p=freeside.git diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index b3d8a56f1..9f9770c31 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -16,14 +16,6 @@ use FS::UID qw(datasrc); $DEBUG = 0; $me = '[FS::Schema]'; -#hardcoded now... -##ask FS::UID to run this stuff for us later -#FS::UID->install_callback( sub { -# #$conf = new FS::Conf; -# &reload_dbdef("/usr/local/etc/freeside/dbdef.". datasrc) -# unless $setup_hack; #$setup_hack needed now? -#} ); - =head1 NAME FS::Schema - Freeside database schema @@ -59,7 +51,7 @@ sub reload_dbdef { unless ( exists $dbdef_cache{$file} ) { warn "[debug]$me loading dbdef for $file\n" if $DEBUG; $dbdef_cache{$file} = DBIx::DBSchema->load( $file ) - or die "can't load database schema from $file"; + or die "can't load database schema from $file: $DBIx::DBSchema::errstr\n"; } else { warn "[debug]$me re-using cached dbdef for $file\n" if $DEBUG; } @@ -553,6 +545,19 @@ sub tables_hashref { 'index' => [ [ 'paynum' ], [ 'invnum' ] ], }, + 'cust_bill_pay_batch' => { + 'columns' => [ + 'billpaynum', 'serial', '', '', '', '', + 'invnum', 'int', '', '', '', '', + 'paybatchnum', 'int', '', '', '', '', + 'amount', @money_type, '', '', + '_date', @date_type, '', '', + ], + 'primary_key' => 'billpaynum', + 'unique' => [], + 'index' => [ [ 'paybatchnum' ], [ 'invnum' ] ], + }, + 'cust_bill_pay_pkg' => { 'columns' => [ 'billpaypkgnum', 'serial', '', '', '', '',