[freeside-commits] branch FREESIDE_4_BRANCH updated. 06d26720a9c77386bc7353bb9c501a2d46007f83

Christopher Burger burgerc at freeside.biz
Fri Dec 21 12:27:01 PST 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  06d26720a9c77386bc7353bb9c501a2d46007f83 (commit)
      from  14cfadee1f1cbd670a807e616f3dd5b7dff48176 (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 06d26720a9c77386bc7353bb9c501a2d46007f83
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 ab2384453..fcf19f749 100755
--- a/FS/bin/freeside-upgrade
+++ b/FS/bin/freeside-upgrade
@@ -157,7 +157,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