# HG changeset patch
# User Atul Gaware <atul.gaware@openbravo.com>
# Date 1455692701 -19800
#      Wed Feb 17 12:35:01 2016 +0530
# Node ID 8410c9a28ed6a05345aabec9362e2400ecb3bf19
# Parent  244ceec1c92eaec08180907d4e6c6b61dce9374e
Fixes Issue 32282:Support for partial indexes

Added specific case to skip db validation for foreign key
columns in c_orderline table
- ref_orderline_id
- quotationline_id
- bom_parent_id

diff -r 244ceec1c92e -r 8410c9a28ed6 src/org/openbravo/service/system/DatabaseValidator.java
--- a/src/org/openbravo/service/system/DatabaseValidator.java	Tue Feb 16 10:45:01 2016 +0530
+++ b/src/org/openbravo/service/system/DatabaseValidator.java	Wed Feb 17 12:35:01 2016 +0530
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2009-2014 Openbravo SLU 
+ * All portions are Copyright (C) 2009-2016 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -415,6 +415,14 @@
           continue;
         }
 
+        // ignore this specific case
+        if (entity.getTableName().equalsIgnoreCase("c_orderline")
+            && (colName.equalsIgnoreCase("ref_orderline_id")
+                || colName.equalsIgnoreCase("quotationline_id") || colName
+                  .equalsIgnoreCase("bom_parent_id"))) {
+          continue;
+        }
+
         // ignore ad_audit_trail as fk's are omitted on purpose
         if (entity.getTableName().equalsIgnoreCase("ad_audit_trail")) {
           continue;
