Fixes issue 38504: API change for issue 38386
authorAlvaro Ferraz <alvaro.ferraz@openbravo.com>
Tue, 15 May 2018 16:07:23 +0200
changeset 815 572d07a10406
parent 814 3aec9468515a
child 816 22da890c97d1
Fixes issue 38504: API change for issue 38386
model/src-db/database/model/tables/M_WAREHOUSE.xml
--- a/model/src-db/database/model/tables/M_WAREHOUSE.xml	Fri May 11 13:57:15 2018 +0200
+++ b/model/src-db/database/model/tables/M_WAREHOUSE.xml	Tue May 15 16:07:23 2018 +0200
@@ -97,8 +97,12 @@
         <reference local="M_WAREHOUSE_RULE_ID" foreign="M_WAREHOUSE_RULE_ID"/>
       </foreign-key>
       <unique name="M_WAREHOUSE_NAME">
+        <unique-column name="NAME"/>
         <unique-column name="AD_CLIENT_ID"/>
-        <unique-column name="NAME"/>
+      </unique>
+      <unique name="M_WAREHOUSE_VALUE">
+        <unique-column name="VALUE"/>
+        <unique-column name="AD_CLIENT_ID"/>
       </unique>
       <check name="M_WAREHOUSE_ALLOCATED"><![CDATA[ISALLOCATED IN ('Y', 'N')]]></check>
       <check name="M_WAREHOUSE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>