Skip to content

Commit

Permalink
FIX Bad type of sql fields
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 13, 2019
1 parent 850b09d commit 7d39554
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Expand Up @@ -18,11 +18,11 @@

CREATE TABLE llx_product_attribute_combination
(
rowid INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
fk_product_parent INT NOT NULL,
fk_product_child INT NOT NULL,
variation_price FLOAT NOT NULL,
variation_price_percentage INT NULL,
variation_weight FLOAT NOT NULL,
entity INT DEFAULT 1 NOT NULL
rowid INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,
fk_product_parent INTEGER NOT NULL,
fk_product_child INTEGER NOT NULL,
variation_price DOUBLE(24,8) NOT NULL,
variation_price_percentage INTEGER NULL,
variation_weight REAL NOT NULL,
entity INTEGER DEFAULT 1 NOT NULL
)ENGINE=innodb;
10 changes: 5 additions & 5 deletions htdocs/install/mysql/tables/llx_product_pricerules.sql
Expand Up @@ -18,9 +18,9 @@

CREATE TABLE llx_product_pricerules
(
rowid INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
level INT NOT NULL, -- Which price level is this rule for?
fk_level INT NOT NULL, -- Price variations are made over price of X
var_percent FLOAT NOT NULL, -- Price variation over based price
var_min_percent FLOAT NOT NULL -- Min price discount over general price
rowid INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,
level INTEGER NOT NULL, -- Which price level is this rule for?
fk_level INTEGER NOT NULL, -- Price variations are made over price of X
var_percent REAL NOT NULL, -- Price variation over based price
var_min_percent REAL NOT NULL -- Min price discount over general price
)ENGINE=innodb;

0 comments on commit 7d39554

Please sign in to comment.