diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-12-21 14:06:15 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-12-21 14:08:45 -0500 |
commit | 2374e0953e82e13e71bb7eaeaffd41bfeb324719 (patch) | |
tree | 78052ed757168897cf79658af56d23ba932147fe /FS/bin/freeside-upgrade | |
parent | 868ef784aa38d4eafb6065cf39d8f4261e14f959 (diff) |
RT# 81596 - fixed freeside-upgrade to not drop custom fields
Diffstat (limited to 'FS/bin/freeside-upgrade')
-rwxr-xr-x | FS/bin/freeside-upgrade | 2 |
1 files changed, 1 insertions, 1 deletions
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'}.")" |