Fix migration
This commit is contained in:
parent
5297ab4ab4
commit
d4bb6490e9
@ -33,6 +33,19 @@ ALTER TABLE llx_account_bookkeeping ADD COLUMN date_export datetime DEFAULT NULL
|
||||
ALTER TABLE llx_expensereport ADD COLUMN paid smallint default 0 NOT NULL;
|
||||
UPDATE llx_expensereport set paid = 1 WHERE fk_statut = 6 and paid = 0;
|
||||
|
||||
UPDATE llx_c_units SET short_label = 'i' WHERE code = 'MI';
|
||||
UPDATE llx_c_units SET unit_type = 'weight', short_label = 'kg', scale = 0 WHERE code = 'KG';
|
||||
UPDATE llx_c_units SET unit_type = 'weight', short_label = 'g', scale = -3 WHERE code = 'G';
|
||||
UPDATE llx_c_units SET unit_type = 'time' WHERE code IN ('S','H','D');
|
||||
UPDATE llx_c_units SET unit_type = 'size' WHERE code IN ('M','LM');
|
||||
UPDATE llx_c_units SET label = 'SizeUnitm', scale = 0 WHERE code IN ('M');
|
||||
UPDATE llx_c_units SET active = 0, scale = 0 WHERE code IN ('LM');
|
||||
UPDATE llx_c_units SET unit_type = 'surface', scale = 0 WHERE code IN ('M2');
|
||||
UPDATE llx_c_units SET unit_type = 'volume', scale = 0 WHERE code IN ('M3','L');
|
||||
UPDATE llx_c_units SET scale = -3, active = 0 WHERE code IN ('L');
|
||||
UPDATE llx_c_units SET label = 'VolumeUnitm3' WHERE code IN ('M3');
|
||||
UPDATE llx_c_units SET label = 'SurfaceUnitm2' WHERE code IN ('M2');
|
||||
|
||||
|
||||
-- For v11
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user