IDEMPIERE-458 Invalid indirect foreign keys on GardenWorld

This commit is contained in:
Carlos Ruiz 2012-10-09 14:23:10 -05:00
parent d735ce2e22
commit bfb6c70256
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
-- IDEMPIERE-458 Invalid indirect foreign keys on GardenWorld
delete from ad_treenode where ad_tree_id=102 and node_id not in (select m_product_id from m_product)
;
delete from ad_treenode where ad_tree_id=103 and node_id not in (select c_bpartner_id from c_bpartner)
;
delete from ad_treenode where ad_tree_id=101 and node_id not in (select c_elementvalue_id from c_elementvalue)
;
SELECT register_migration_script('929_IDEMPIERE-458.sql') FROM dual
;

View File

@ -0,0 +1,13 @@
-- IDEMPIERE-458 Invalid indirect foreign keys on GardenWorld
delete from ad_treenode where ad_tree_id=102 and node_id not in (select m_product_id from m_product)
;
delete from ad_treenode where ad_tree_id=103 and node_id not in (select c_bpartner_id from c_bpartner)
;
delete from ad_treenode where ad_tree_id=101 and node_id not in (select c_elementvalue_id from c_elementvalue)
;
SELECT register_migration_script('929_IDEMPIERE-458.sql') FROM dual
;