[freeside-commits] freeside/FS/FS cust_main.pm, 1.271.2.64, 1.271.2.65
Ivan,,,
ivan at wavetail.420.am
Fri Apr 17 03:17:05 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15497
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main.pm
Log Message:
backport paycvv upgrade from 1.9: "orders of magnitude faster"
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.271.2.64
retrieving revision 1.271.2.65
diff -u -d -r1.271.2.64 -r1.271.2.65
--- cust_main.pm 14 Apr 2009 17:14:50 -0000 1.271.2.64
+++ cust_main.pm 17 Apr 2009 10:17:03 -0000 1.271.2.65
@@ -6283,7 +6283,7 @@
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;
More information about the freeside-commits
mailing list