Added missing SQL statements + reordered them
This commit is contained in:
parent
e1f2efee4d
commit
592348850f
@ -69,17 +69,8 @@ ALTER TABLE llx_societe_rib MODIFY COLUMN code_banque varchar(128);
|
||||
|
||||
ALTER TABLE llx_contrat ADD COLUMN ref_customer varchar(30);
|
||||
ALTER TABLE llx_commande ADD COLUMN fk_warehouse integer DEFAULT NULL after fk_shipping_method;
|
||||
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
|
||||
);
|
||||
|
||||
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath varchar(750);
|
||||
|
||||
ALTER TABLE llx_ecm_directories DROP INDEX idx_ecm_directories;
|
||||
ALTER TABLE llx_ecm_directories ADD UNIQUE INDEX uk_ecm_directories (label, fk_parent, entity);
|
||||
--ALTER TABLE llx_ecm_directories ADD UNIQUE INDEX uk_ecm_directories_fullpath(fullpath);
|
||||
@ -263,4 +254,15 @@ ALTER TABLE llx_budget_lines ADD CONSTRAINT fk_budget_lines_budget FOREIGN KEY (
|
||||
ALTER TABLE llx_c_typent ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||
ALTER TABLE llx_c_forme_juridique ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||
ALTER TABLE llx_c_type_fees ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||
ALTER TABLE llx_product ADD COLUMN price_autogen TINYINT(1) DEFAULT 0;
|
||||
|
||||
-- NEW Level multiprice generator based on per cent variations over base price
|
||||
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
|
||||
);
|
||||
ALTER TABLE llx_product ADD COLUMN price_autogen TINYINT(1) DEFAULT 0;
|
||||
ALTER TABLE llx_product_pricerules ADD CONSTRAINT unique_level UNIQUE (level);
|
||||
Loading…
Reference in New Issue
Block a user