Fix: A fix to have new version of code able to run old migrate process

This commit is contained in:
Laurent Destailleur 2010-10-06 09:16:50 +00:00
parent a932cf8cdf
commit f565112bf8
4 changed files with 16 additions and 1 deletions

View File

@ -955,3 +955,7 @@ UPDATE llx_usergroup_rights SET fk_id=fk_id+1 WHERE fk_id BETWEEN 1320 AND 1320;
UPDATE llx_rights_def SET ID=ID+1 WHERE ID BETWEEN 1420 AND 1420 AND module='commande';
UPDATE llx_user_rights SET fk_id=fk_id+1 WHERE fk_id BETWEEN 1420 AND 1420;
UPDATE llx_usergroup_rights SET fk_id=fk_id+1 WHERE fk_id BETWEEN 1420 AND 1420;
-- Not used. Just to be compatible with upgrade process of higher versions
alter table llx_const add column entity integer DEFAULT 1 NOT NULL;

View File

@ -1175,4 +1175,8 @@ ALTER TABLE llx_commande_fournisseurdet MODIFY fk_product integer;
-- Le prix d'un produit ne doit pas avoir la valeur NULL
UPDATE llx_product SET price = 0 WHERE price is NULL;
UPDATE llx_product SET price_ttc = 0 WHERE price_ttc is NULL;
UPDATE llx_product SET price_ttc = 0 WHERE price_ttc is NULL;
-- Not used. Just to be compatible with upgrade process of higher versions
alter table llx_const add column entity integer DEFAULT 1 NOT NULL;

View File

@ -345,3 +345,7 @@ update llx_societe set fk_typent = 0 where fk_typent is null;
ALTER TABLE llx_surveys_answers_summary TYPE=INNODB;
-- Not used. Just to be compatible with upgrade process of higher versions
alter table llx_const add column entity integer DEFAULT 1 NOT NULL;

View File

@ -110,3 +110,6 @@ INSERT INTO llx_expedition_methode (rowid,code,libelle,description,active) VALUE
INSERT INTO llx_expedition_methode (rowid,code,libelle,description,active) VALUES (2,'TRANS','Transporter','Generic transporter',1);
INSERT INTO llx_expedition_methode (rowid,code,libelle,description,active) VALUES (3,'COLSUI','Colissimo Suivi','Colissimo Suivi',0);
-- Not used. Just to be compatible with upgrade process of higher versions
alter table llx_const add column entity integer DEFAULT 1 NOT NULL;