clean up the old Commerce tables, and close a statement handle
This commit is contained in:
parent
624677aba3
commit
f9297edde8
1 changed files with 6 additions and 4 deletions
|
|
@ -821,6 +821,7 @@ sub mergeProductsWithCommerce {
|
||||||
$options->{$row{optionId}} = $option;
|
$options->{$row{optionId}} = $option;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$parameterSth->finish;
|
||||||
|
|
||||||
##Get the variants
|
##Get the variants
|
||||||
$variantSth->execute([$productData->{productId}]);
|
$variantSth->execute([$productData->{productId}]);
|
||||||
|
|
@ -847,13 +848,14 @@ sub mergeProductsWithCommerce {
|
||||||
$productSth->finish;
|
$productSth->finish;
|
||||||
$variantSth->finish;
|
$variantSth->finish;
|
||||||
##Clean up tables
|
##Clean up tables
|
||||||
#$session->db->write('drop table products');
|
$session->db->write('drop table products');
|
||||||
#$session->db->write('drop table productParameters');
|
$session->db->write('drop table productParameters');
|
||||||
#$session->db->write('drop table productParameterOptionss');
|
$session->db->write('drop table productParameterOptionss');
|
||||||
#$session->db->write('drop table productVariants');
|
$session->db->write('drop table productVariants');
|
||||||
##Remove old code
|
##Remove old code
|
||||||
#unlink '../../lib/WebGUI/Product.pm';
|
#unlink '../../lib/WebGUI/Product.pm';
|
||||||
#unlink '../../lib/WebGUI/Operation/ProductManager.pm';
|
#unlink '../../lib/WebGUI/Operation/ProductManager.pm';
|
||||||
|
#unlink '../../lib/WebGUI/Macro/Product.pm';
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue