Fix record with date_creation empty

This commit is contained in:
Laurent Destailleur 2018-04-30 08:59:07 +02:00
parent 984ef37ff5
commit 6a76242611
2 changed files with 4 additions and 0 deletions

View File

@ -435,6 +435,8 @@ UPDATE llx_accounting_account set account_parent = 0 WHERE account_parent = '' O
-- VPGSQL8.2 ALTER TABLE llx_accounting_account ALTER COLUMN account_parent SET DEFAULT 0;
ALTER TABLE llx_accounting_account ADD INDEX idx_accounting_account_account_parent (account_parent);
UPDATE llx_accounting_bookkeeping set date_creation = tms where date_creation IS NULL;
ALTER TABLE llx_extrafields MODIFY COLUMN list VARCHAR(128);
UPDATE llx_rights_def set module = 'asset' where module = 'assets';

View File

@ -438,6 +438,8 @@ update llx_facture_fourn_det set product_type = 0 where product_type = 1 AND fk_
update llx_facture_fourn_det set product_type = 1 where product_type = 0 AND fk_product > 0 AND fk_product IN (SELECT rowid FROM llx_product WHERE fk_product_type = 1);
UPDATE llx_accounting_bookkeeping set date_creation = tms where date_creation IS NULL;
-- UPDATE llx_contratdet set label = NULL WHERE label IS NOT NULL;
-- UPDATE llx_facturedet_rec set label = NULL WHERE label IS NOT NULL;