tyops
authorivan <ivan>
Tue, 4 Sep 2001 11:14:13 +0000 (11:14 +0000)
committerivan <ivan>
Tue, 4 Sep 2001 11:14:13 +0000 (11:14 +0000)
bin/fs-setup

index 0c2b67d..3d56d9f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -Tw
 #
 #!/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; }
 
 #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);
 #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 );
   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' => {
     },
 
     'cust_bill_pay' => {
-      'column' => [
+      'columns' => [
         'billpaynum', 'int',     '',   '',
         'invnum',  'int',     '',   '',
         'paynum',  'int',     '',   '',
         'billpaynum', 'int',     '',   '',
         'invnum',  'int',     '',   '',
         'paynum',  'int',     '',   '',
@@ -500,7 +502,7 @@ sub tables_hash_hack {
     },
 
     'cust_credit_refund' => {
     },
 
     'cust_credit_refund' => {
-      'column' => [
+      'columns' => [
         'creditrefundnum', 'int',     '',   '',
         'crednum',  'int',     '',   '',
         'refundnum',  'int',     '',   '',
         'creditrefundnum', 'int',     '',   '',
         'crednum',  'int',     '',   '',
         'refundnum',  'int',     '',   '',