IDEMPIERE-3364:Sequence Check don't respect inactive record of ad_table
This commit is contained in:
parent
9c170f8b71
commit
07b1f8ddc0
|
@ -137,7 +137,7 @@ public class SequenceCheck extends SvrProcess
|
||||||
// Sync Table Name case
|
// Sync Table Name case
|
||||||
sql = "UPDATE AD_Sequence s "
|
sql = "UPDATE AD_Sequence s "
|
||||||
+ "SET Name = (SELECT TableName FROM AD_Table t "
|
+ "SET Name = (SELECT TableName FROM AD_Table t "
|
||||||
+ "WHERE t.IsView='N' AND UPPER(s.Name)=UPPER(t.TableName)) "
|
+ "WHERE t.IsView='N' AND t.IsActive='Y' AND UPPER(s.Name)=UPPER(t.TableName)) "
|
||||||
+ "WHERE s.IsTableID='Y'"
|
+ "WHERE s.IsTableID='Y'"
|
||||||
+ " AND EXISTS (SELECT * FROM AD_Table t "
|
+ " AND EXISTS (SELECT * FROM AD_Table t "
|
||||||
+ "WHERE t.IsActive='Y' AND t.IsView='N'"
|
+ "WHERE t.IsActive='Y' AND t.IsView='N'"
|
||||||
|
|
Loading…
Reference in New Issue