clean up the old Commerce tables, and close a statement handle

This commit is contained in:
Colin Kuskie 2008-05-07 20:41:28 +00:00
parent 624677aba3
commit f9297edde8

View file

@ -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;
} }