FIX Bad type of sql fields
This commit is contained in:
parent
850b09d295
commit
7d39554797
@ -18,11 +18,11 @@
|
|||||||
|
|
||||||
CREATE TABLE llx_product_attribute_combination
|
CREATE TABLE llx_product_attribute_combination
|
||||||
(
|
(
|
||||||
rowid INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
rowid INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
||||||
fk_product_parent INT NOT NULL,
|
fk_product_parent INTEGER NOT NULL,
|
||||||
fk_product_child INT NOT NULL,
|
fk_product_child INTEGER NOT NULL,
|
||||||
variation_price FLOAT NOT NULL,
|
variation_price DOUBLE(24,8) NOT NULL,
|
||||||
variation_price_percentage INT NULL,
|
variation_price_percentage INTEGER NULL,
|
||||||
variation_weight FLOAT NOT NULL,
|
variation_weight REAL NOT NULL,
|
||||||
entity INT DEFAULT 1 NOT NULL
|
entity INTEGER DEFAULT 1 NOT NULL
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
CREATE TABLE llx_product_pricerules
|
CREATE TABLE llx_product_pricerules
|
||||||
(
|
(
|
||||||
rowid INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
rowid INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
||||||
level INT NOT NULL, -- Which price level is this rule for?
|
level INTEGER NOT NULL, -- Which price level is this rule for?
|
||||||
fk_level INT NOT NULL, -- Price variations are made over price of X
|
fk_level INTEGER NOT NULL, -- Price variations are made over price of X
|
||||||
var_percent FLOAT NOT NULL, -- Price variation over based price
|
var_percent REAL NOT NULL, -- Price variation over based price
|
||||||
var_min_percent FLOAT NOT NULL -- Min price discount over general price
|
var_min_percent REAL NOT NULL -- Min price discount over general price
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user