Clean orphelins

This commit is contained in:
Laurent Destailleur 2016-12-23 15:22:25 +01:00
parent cb4e0233b9
commit 46a8041143
2 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ ALTER TABLE llx_expensereport ADD INDEX idx_expensereport_fk_user_valid (fk_user
ALTER TABLE llx_expensereport ADD INDEX idx_expensereport_fk_user_approve (fk_user_approve);
ALTER TABLE llx_expensereport ADD INDEX idx_expensereport_fk_refuse (fk_user_approve);
DELETE FROM llx_actioncomm_resources WHERE fk_actioncomm not in (select id from llx_actioncomm);
-- Sequence to removed duplicated values of llx_links. Use serveral times if you still have duplicate.
drop table tmp_links_double;

View File

@ -144,7 +144,7 @@ delete from llx_element_element where sourcetype='commande' and fk_source not in
-- Fix: delete orphelin actioncomm_resources
delete from llx_actioncomm_resources where fk_actioncomm not in (select id from llx_actioncomm);
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';