src-db/database/model/tables/AD_IMAGE.xml
changeset 20246 ad7168af39fc
parent 13288 3f2583bb1884
child 20248 417c9e911cc0
--- a/src-db/database/model/tables/AD_IMAGE.xml	Mon Apr 29 13:44:37 2013 +0200
+++ b/src-db/database/model/tables/AD_IMAGE.xml	Mon Apr 29 13:47:02 2013 +0200
@@ -60,7 +60,7 @@
       <foreign-key foreignTable="AD_CLIENT" name="AD_IMAGE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_IMAGE_AD_ORG">
+      <foreign-key foreignTable="AD_ORG" name="AD_IMAGE_AD_ORG" onDelete="cascade">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
       <check name="AD_IMAGE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>