Fixed upgrade script.
This commit is contained in:
parent
0a87bb25e8
commit
a5d3403bcc
1 changed files with 2 additions and 2 deletions
|
|
@ -408,8 +408,8 @@ sub migrateOldProduct {
|
||||||
print "\tMigrate old Product to new SKU based Products.\n" unless ($quiet);
|
print "\tMigrate old Product to new SKU based Products.\n" unless ($quiet);
|
||||||
# and here's our code
|
# and here's our code
|
||||||
##Grab data from Wobject table, and move it into Sku and Product, as appropriate.
|
##Grab data from Wobject table, and move it into Sku and Product, as appropriate.
|
||||||
my $wobject = $session->db->prepare('select * from commerceSalesTax');
|
my $oldTax = $session->db->prepare('select * from commerceSalesTax');
|
||||||
my $sku = $session->db->prepare('insert into tax (taxId, country, state, city, code, taxRate) VALUES (?,?,?,?,?,?)');
|
my $newTax = $session->db->prepare('insert into tax (taxId, country, state, city, code, taxRate) VALUES (?,?,?,?,?,?)');
|
||||||
my $rmWobject =
|
my $rmWobject =
|
||||||
$oldTax->execute();
|
$oldTax->execute();
|
||||||
while (my $oldTaxData = $oldTax->hashRef()) {
|
while (my $oldTaxData = $oldTax->hashRef()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue