[freeside-commits] branch FREESIDE_3_BRANCH updated. 2374e0953e82e13e71bb7eaeaffd41bfeb324719

Christopher Burger burgerc at freeside.biz
Fri Dec 21 11:29:34 PST 2018


The branch, FREESIDE_3_BRANCH has been updated
       via  2374e0953e82e13e71bb7eaeaffd41bfeb324719 (commit)
      from  868ef784aa38d4eafb6065cf39d8f4261e14f959 (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 2374e0953e82e13e71bb7eaeaffd41bfeb324719
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 a454481b9..e17895d65 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