new variant table schema
This commit is contained in:
parent
bef82ef65f
commit
5f6a5d2df8
1 changed files with 5 additions and 2 deletions
|
|
@ -592,13 +592,16 @@ sub migrateOldProduct {
|
||||||
print "\t\tAdding new product variants table.\n" unless ($quiet);
|
print "\t\tAdding new product variants table.\n" unless ($quiet);
|
||||||
$session->db->write(<<'EOSQL');
|
$session->db->write(<<'EOSQL');
|
||||||
CREATE TABLE Product_variants (
|
CREATE TABLE Product_variants (
|
||||||
varSku VARCHAR(255) BINARY NOT NULL PRIMARY KEY,
|
variantId VARCHAR(22) BINARY NOT NULL PRIMARY KEY,
|
||||||
|
varSku VARCHAR(255) BINARY NOT NULL UNIQUE,
|
||||||
|
assetId VARCHAR(22) BINARY NOT NULL,
|
||||||
mastersku VARCHAR(22) BINARY NOT NULL,
|
mastersku VARCHAR(22) BINARY NOT NULL,
|
||||||
varTitle VARCHAR(255) BINARY NOT NULL,
|
varTitle VARCHAR(255) BINARY NOT NULL,
|
||||||
shortdesc VARCHAR(30),
|
shortdesc VARCHAR(30),
|
||||||
price FLOAT,
|
price FLOAT,
|
||||||
weight FLOAT,
|
weight FLOAT,
|
||||||
quantity INT
|
quantity INT,
|
||||||
|
sequenceNumber INT
|
||||||
);
|
);
|
||||||
EOSQL
|
EOSQL
|
||||||
##Have to change the className's in the db, too
|
##Have to change the className's in the db, too
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue