add a variants table for product collateral
This commit is contained in:
parent
99e5694513
commit
6471d3103e
1 changed files with 11 additions and 0 deletions
|
|
@ -560,6 +560,17 @@ sub migrateOldProduct {
|
|||
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),
|
||||
shortdesc VARCHAR(30),
|
||||
price FLOAT,
|
||||
weight FLOAT,
|
||||
quantity INT
|
||||
);
|
||||
EOSQL
|
||||
## Add the parameter and variants columns
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue