[freeside-commits] branch master updated. c213fdbabc178985a93996aac33a907465b31007
Christopher Burger
burgerc at freeside.biz
Fri Dec 21 11:07:05 PST 2018
The branch, master has been updated
via c213fdbabc178985a93996aac33a907465b31007 (commit)
from 4d9e2d0980eb542aec39997b7bd92130b3a60676 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c213fdbabc178985a93996aac33a907465b31007
Author: Christopher Burger <burgerc at freeside.biz>
Date: Fri Dec 21 14:06:15 2018 -0500
RT# 81596 - fixed freeside-upgrade to not drop custom fields
diff --git a/FS/bin/freeside-upgrade b/FS/bin/freeside-upgrade
index c5df06dc3..0df388411 100755
--- a/FS/bin/freeside-upgrade
+++ b/FS/bin/freeside-upgrade
@@ -120,7 +120,7 @@ while ( $cf = $cfsth->fetchrow_hashref ) {
my $name = $cf->{'name'};
$name = lc($name) unless driver_name =~ /^mysql/i;
- @statements = grep { $_ !~ /^\s*ALTER\s+TABLE\s+(h_|)$tbl\s+DROP\s+COLUMN\s+cf_$name\s*$/i }
+ @statements = grep { $_ !~ /^\s*ALTER\s+TABLE\s+(h_|)$tbl DROP\s+COLUMN\s+cf_$name/i }
@statements;
push @statements,
"ALTER TABLE $tbl ADD COLUMN cf_$name varchar(".$cf->{'length'}.")"
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-upgrade | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the freeside-commits
mailing list