Fixed issue 27259.Add onDelete cascade
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Mon, 04 Aug 2014 08:43:33 +0200
changeset 574 70cc28bd9188
parent 573 34174b686929
child 575 7366cc5cfc84
Fixed issue 27259.Add onDelete cascade
model/src-db/database/model/tables/M_STOCK_PROPOSED.xml
--- a/model/src-db/database/model/tables/M_STOCK_PROPOSED.xml	Wed Aug 06 11:53:08 2014 +0000
+++ b/model/src-db/database/model/tables/M_STOCK_PROPOSED.xml	Mon Aug 04 08:43:33 2014 +0200
@@ -63,7 +63,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MSTOCKPROPOSED">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_PINSTANCE" name="AD_PINSTANCE_MSTOCKPROPOSED">
+      <foreign-key foreignTable="AD_PINSTANCE" name="AD_PINSTANCE_MSTOCKPROPOSED" onDelete="cascade">
         <reference local="AD_PINSTANCE_ID" foreign="AD_PINSTANCE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="M_STORAGE_DETAIL" name="M_STORAGEDET_MSTOCKPROPOSED">