update schema, changin some relations between tables

This commit is contained in:
Manuel Raynaud
2013-08-02 12:40:51 +02:00
parent 8f46c57d72
commit fe850718cc
5 changed files with 20 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<database defaultIdMethod="native" name="thelia">
<table name="category" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
@@ -990,10 +990,10 @@
<column name="currency_id" required="true" type="INTEGER" />
<column name="price" required="true" type="FLOAT" />
<column name="promo_price" type="FLOAT" />
<foreign-key foreignTable="product_sale_elements" name="fk_product_price_product_sale_elements_id">
<foreign-key foreignTable="product_sale_elements" name="fk_product_price_product_sale_elements_id" onDelete="CASCADE">
<reference foreign="id" local="product_sale_elements_id" />
</foreign-key>
<foreign-key foreignTable="currency" name="fk_product_price_currency_id">
<foreign-key foreignTable="currency" name="fk_product_price_currency_id" onDelete="CASCADE">
<reference foreign="id" local="currency_id" />
</foreign-key>
<index name="idx_product_price_product_sale_elements_id">