Fix orphelins

This commit is contained in:
Laurent Destailleur 2016-12-23 15:21:38 +01:00
parent 24cad7cfdf
commit cb4e0233b9

View File

@ -143,6 +143,10 @@ delete from llx_element_element where sourcetype='facture' and fk_source not in
delete from llx_element_element where sourcetype='commande' and fk_source not in (select rowid from llx_commande);
-- Fix: delete orphelin actioncomm_resources
delete from llx_actioncomm_resources where fk_actioncomm not in (select id from llx_actioncomm);
UPDATE llx_product SET canvas = NULL where canvas = 'default@product';
UPDATE llx_product SET canvas = NULL where canvas = 'service@product';