orders of magnitude faster
[freeside.git] / FS / FS / cust_main.pm
index a39ac34..b828542 100644 (file)
@@ -8434,7 +8434,7 @@ sub queued_bill {
 sub _upgrade_data { #class method
   my ($class, %opts) = @_;
 
-  my $sql = 'UPDATE h_cust_main SET paycvv = NULL';
+  my $sql = 'UPDATE h_cust_main SET paycvv = NULL WHERE paycvv IS NOT NULL';
   my $sth = dbh->prepare($sql) or die dbh->errstr;
   $sth->execute or die $sth->errstr;