From 6471d3103eeee3f898e73ecf726058088ed45da4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 28 Apr 2008 23:25:52 +0000 Subject: [PATCH] add a variants table for product collateral --- docs/upgrades/upgrade_7.5.10-7.5.11.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index f857f61a4..e04970b2d 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -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; }