summaryrefslogtreecommitdiffstats
path: root/schema.xml
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 12:36:36 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 12:36:36 +0200
commitdb7d9c0817a40ecaf6849c2e024d52ab6ed80324 (patch)
tree28de56eff9954c1fcf2ad4ac41690665ce6dcc84 /schema.xml
parentfba23ca163517597b67f4674f721d919470f3697 (diff)
downloadCatalog-db7d9c0817a40ecaf6849c2e024d52ab6ed80324.tar.gz
Catalog-db7d9c0817a40ecaf6849c2e024d52ab6ed80324.zip
Update the propel database to cascade updates and deletions
Diffstat (limited to 'schema.xml')
-rw-r--r--schema.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema.xml b/schema.xml
index 84b458e..8d37630 100644
--- a/schema.xml
+++ b/schema.xml
@@ -22,10 +22,10 @@
<table name="product_category" idMethod="native" phpName="ProductCategory" isCrossRef="true">
<column name="product_id" phpName="ProductId" type="INTEGER" primaryKey="true" required="true"/>
<column name="category_id" phpName="CategoryId" type="INTEGER" primaryKey="true" required="true"/>
- <foreign-key foreignTable="category" name="product_category_ibfk_1">
+ <foreign-key foreignTable="category" name="product_category_ibfk_1" onUpdate="cascade" onDelete="cascade">
<reference local="category_id" foreign="id"/>
</foreign-key>
- <foreign-key foreignTable="product" name="product_category_ibfk_2">
+ <foreign-key foreignTable="product" name="product_category_ibfk_2" onUpdate="cascade" onDelete="cascade">
<reference local="product_id" foreign="id"/>
</foreign-key>
<index name="category_id">