IDEMPIERE-283 Synchronize Terminology is deleting translation of unused official elements
This commit is contained in:
parent
01821ee9a7
commit
471a1adfcd
|
@ -131,7 +131,7 @@ public class SynchronizeTerminology extends SvrProcess
|
||||||
|
|
||||||
log.info("Deleting unused Elements");
|
log.info("Deleting unused Elements");
|
||||||
sql="DELETE AD_ELEMENT_TRL"
|
sql="DELETE AD_ELEMENT_TRL"
|
||||||
+" WHERE AD_Element_ID IN"
|
+" WHERE AD_Element_ID >= 1000000 AND AD_Element_ID IN"
|
||||||
+" (SELECT AD_Element_ID FROM AD_ELEMENT e "
|
+" (SELECT AD_Element_ID FROM AD_ELEMENT e "
|
||||||
+" WHERE NOT EXISTS"
|
+" WHERE NOT EXISTS"
|
||||||
+" (SELECT 1 FROM AD_COLUMN c WHERE UPPER(e.ColumnName)=UPPER(c.ColumnName))"
|
+" (SELECT 1 FROM AD_COLUMN c WHERE UPPER(e.ColumnName)=UPPER(c.ColumnName))"
|
||||||
|
|
Loading…
Reference in New Issue