add parameter and variant columns to the Product asset
This commit is contained in:
parent
0e747fd5ed
commit
c1e5f2e83c
1 changed files with 11 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ addPaymentDrivers($session);
|
|||
convertTransactionLog($session);
|
||||
upgradeEMS($session);
|
||||
migrateOldProduct($session);
|
||||
mergeProductsWithCommerce($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -446,6 +447,16 @@ sub migrateOldProduct {
|
|||
return;
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub mergeProductsWithCommerce {
|
||||
my $session = shift;
|
||||
print "\tMerge old Commerce Products to new SKU based Products.\n" unless ($quiet);
|
||||
## Add the parameter and variants columns
|
||||
$session->db->write("alter table Product add column parameters mediumtext");
|
||||
$session->db->write("alter table Product add column variants mediumtext");
|
||||
return 1;
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub insertCommercePayDriverTable {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue