Begin rebuilding variants as simple collateral.

This commit is contained in:
Colin Kuskie 2008-04-29 23:32:38 +00:00
parent 7b4a74fdfe
commit cdd57ea221
3 changed files with 104 additions and 6 deletions

View file

@ -602,10 +602,9 @@ sub mergeProductsWithCommerce {
my $session = shift;
print "\tMerge old Commerce Products to new SKU based Products.\n" unless ($quiet);
$session->db->write(<<'EOSQL');
CREATE TABLE Product_Variants (
sku VARCHAR(255) binary NOT NULL primary key,
mastersku VARCHAR(255) binary NOT NULL,
title VARCHAR(255),
CREATE TABLE Product_variants (
sku VARCHAR(255) BINARY NOT NULL PRIMARY KEY,
mastersku VARCHAR(255) BINARY NOT NULL,
shortdesc VARCHAR(30),
price FLOAT,
weight FLOAT,