treat custom field names as lowercase, #22439
authorMark Wells <mark@freeside.biz>
Wed, 10 Apr 2013 01:15:08 +0000 (18:15 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 10 Apr 2013 01:15:08 +0000 (18:15 -0700)
FS/bin/freeside-upgrade

index b08a840..3d1c2e0 100755 (executable)
@@ -123,6 +123,8 @@ my $cf;
 while ( $cf = $cfsth->fetchrow_hashref ) {
     my $tbl = $cf->{'dbtable'};
     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;
     push @statements,