From: ivan Date: Tue, 4 Sep 2001 11:14:13 +0000 (+0000) Subject: tyops X-Git-Tag: freeside_1_4_0pre11~372 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7258cc4a7bf97ab2a0bca9dd2242e328e1a017ee tyops --- diff --git a/bin/fs-setup b/bin/fs-setup index 0c2b67dda..3d56d9f1f 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: fs-setup,v 1.50 2001-09-04 11:03:22 ivan Exp $ +# $Id: fs-setup,v 1.51 2001-09-04 11:14:13 ivan Exp $ #to delay loading dbdef until we're ready BEGIN { $FS::Record::setup_hack = 1; } @@ -79,6 +79,8 @@ my(%tables)=&tables_hash_hack; #turn it into objects my($dbdef) = new DBIx::DBSchema ( map { my(@columns); + warn $_; + warn $tables{$_}{'columns'}; while (@{$tables{$_}{'columns'}}) { my($name,$type,$null,$length)=splice @{$tables{$_}{'columns'}}, 0, 4; push @columns, new DBIx::DBSchema::Column ( $name,$type,$null,$length ); @@ -426,7 +428,7 @@ sub tables_hash_hack { }, 'cust_bill_pay' => { - 'column' => [ + 'columns' => [ 'billpaynum', 'int', '', '', 'invnum', 'int', '', '', 'paynum', 'int', '', '', @@ -500,7 +502,7 @@ sub tables_hash_hack { }, 'cust_credit_refund' => { - 'column' => [ + 'columns' => [ 'creditrefundnum', 'int', '', '', 'crednum', 'int', '', '', 'refundnum', 'int', '', '',