Fix: dev rule to build portable requests
This commit is contained in:
parent
6ded74d5dd
commit
d1dc04761a
@ -838,7 +838,7 @@ CREATE TABLE llx_product_price_by_qty
|
|||||||
qty_min real DEFAULT 0
|
qty_min real DEFAULT 0
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
ALTER TABLE llx_product_price ADD COLUMN price_by_qty INT NOT NULL DEFAULT 0;
|
ALTER TABLE llx_product_price ADD COLUMN price_by_qty integer NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE llx_product_price_by_qty ADD UNIQUE INDEX uk_product_price_by_qty_level (fk_product_price, qty_min);
|
ALTER TABLE llx_product_price_by_qty ADD UNIQUE INDEX uk_product_price_by_qty_level (fk_product_price, qty_min);
|
||||||
ALTER TABLE llx_product_price_by_qty ADD INDEX idx_product_price_by_qty_fk_product_price (fk_product_price);
|
ALTER TABLE llx_product_price_by_qty ADD INDEX idx_product_price_by_qty_fk_product_price (fk_product_price);
|
||||||
|
|||||||
@ -23,7 +23,7 @@ create table llx_product_price_by_qty
|
|||||||
(
|
(
|
||||||
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_product_price integer NOT NULL,
|
fk_product_price integer NOT NULL,
|
||||||
date_price timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
date_price timestamp NOT NULL,
|
||||||
price double(24,8) DEFAULT 0,
|
price double(24,8) DEFAULT 0,
|
||||||
quantity double DEFAULT NULL,
|
quantity double DEFAULT NULL,
|
||||||
remise_percent double NOT NULL DEFAULT 0,
|
remise_percent double NOT NULL DEFAULT 0,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user