From 0ff15e0670be23954e18d9abbf992993a0fe1b3e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 20 Sep 2002 10:16:28 +0000 Subject: [PATCH] change otaker fields to 32 chars --- FS/FS/UID.pm | 6 ++---- README.1.5.0pre1 | 2 +- bin/fs-setup | 10 +++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index 8934d49fc..6962b2768 100644 --- a/FS/FS/UID.pm +++ b/FS/FS/UID.pm @@ -171,9 +171,7 @@ Returns the current Freeside user. =cut sub getotaker { - #$user; - #stupid kludge until schema otaker fields are not 8 chars - substr($user,0,8); + $user; } =item cgisetotaker @@ -258,7 +256,7 @@ coderef into the hash %FS::UID::callback : =head1 VERSION -$Id: UID.pm,v 1.19 2002-08-29 06:02:52 ivan Exp $ +$Id: UID.pm,v 1.20 2002-09-20 10:16:28 ivan Exp $ =head1 BUGS diff --git a/README.1.5.0pre1 b/README.1.5.0pre1 index 776899e31..ab2f3ab53 100644 --- a/README.1.5.0pre1 +++ b/README.1.5.0pre1 @@ -2,7 +2,7 @@ preliminary upgrade instructions schema changes: *** get svc_broadband changes from pc-intouch - *** otaker changes + *** otaker changes s/8/32 all otkaer fields *** optional: sequence changes install DBIx::DBSchema 0.21 diff --git a/bin/fs-setup b/bin/fs-setup index aeaacbc00..c17c936e7 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: fs-setup,v 1.98 2002-09-19 13:34:51 ivan Exp $ +# $Id: fs-setup,v 1.99 2002-09-20 10:16:28 ivan Exp $ #to delay loading dbdef until we're ready BEGIN { $FS::Record::setup_hack = 1; } @@ -404,7 +404,7 @@ sub tables_hash_hack { 'custnum', 'int', '', '', '_date', @date_type, 'amount', @money_type, - 'otaker', 'varchar', '', 8, + 'otaker', 'varchar', '', 32, 'reason', 'text', 'NULL', '', 'closed', 'char', 'NULL', 1, ], @@ -466,7 +466,7 @@ sub tables_hash_hack { 'paydate', 'varchar', 'NULL', 10, 'payname', 'varchar', 'NULL', $char_d, 'tax', 'char', 'NULL', 1, - 'otaker', 'varchar', '', 8, + 'otaker', 'varchar', '', 32, 'refnum', 'int', '', '', 'referral_custnum', 'int', 'NULL', '', 'comments', 'text', 'NULL', '', @@ -568,7 +568,7 @@ sub tables_hash_hack { 'pkgnum', 'serial', '', '', 'custnum', 'int', '', '', 'pkgpart', 'int', '', '', - 'otaker', 'varchar', '', 8, + 'otaker', 'varchar', '', 32, 'setup', @date_type, 'bill', @date_type, 'susp', @date_type, @@ -588,7 +588,7 @@ sub tables_hash_hack { 'custnum', 'int', '', '', '_date', @date_type, 'refund', @money_type, - 'otaker', 'varchar', '', 8, + 'otaker', 'varchar', '', 32, 'reason', 'varchar', '', $char_d, 'payby', 'char', '', 4, # CARD/BILL/COMP, should be index # into payment type table. -- 2.11.0