Fixed upgrade script.

This commit is contained in:
Martin Kamerbeek 2008-04-01 13:29:36 +00:00
parent 0a87bb25e8
commit a5d3403bcc

View file

@ -408,8 +408,8 @@ sub migrateOldProduct {
print "\tMigrate old Product to new SKU based Products.\n" unless ($quiet);
# and here's our code
##Grab data from Wobject table, and move it into Sku and Product, as appropriate.
my $wobject = $session->db->prepare('select * from commerceSalesTax');
my $sku = $session->db->prepare('insert into tax (taxId, country, state, city, code, taxRate) VALUES (?,?,?,?,?,?)');
my $oldTax = $session->db->prepare('select * from commerceSalesTax');
my $newTax = $session->db->prepare('insert into tax (taxId, country, state, city, code, taxRate) VALUES (?,?,?,?,?,?)');
my $rmWobject =
$oldTax->execute();
while (my $oldTaxData = $oldTax->hashRef()) {