This commit is contained in:
Etienne Roudeix
2013-10-24 10:36:06 +02:00
parent d1024c6841
commit fb4e15ae77
24 changed files with 416 additions and 569 deletions

View File

@@ -84,7 +84,8 @@
<column name="description" type="CLOB" />
<column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" />
<column name="by_default" type="TINYINT" />
<column defaultValue="0" name="by_default" type="TINYINT" />
<column defaultValue="0" name="shop_country" required="true" type="BOOLEAN" />
<foreign-key foreignTable="area" name="fk_country_area_id" onDelete="SET NULL" onUpdate="RESTRICT">
<reference foreign="id" local="area_id" />
</foreign-key>
@@ -767,7 +768,7 @@
<foreign-key foreignTable="profile" name="fk_admin_profile_id" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference foreign="id" local="profile_id" />
</foreign-key>
<index name="fk_admin_profile_id">
<index name="idx_admin_profile_id">
<index-column name="profile_id" />
</index>
<behavior name="timestampable" />
@@ -793,7 +794,7 @@
<table name="profile_module" namespace="Thelia\Model">
<column name="profile_id" primaryKey="true" required="true" type="INTEGER" />
<column name="module_id" primaryKey="true" required="true" type="INTEGER" />
<column defaultValue="0" name="access" required="true" type="INTEGER" />
<column defaultValue="0" name="access" type="TINYINT" />
<foreign-key foreignTable="profile" name="fk_profile_module_profile_id" onDelete="CASCADE" onUpdate="CASCADE">
<reference foreign="id" local="profile_id" />
</foreign-key>
@@ -930,16 +931,16 @@
<column name="address_invoice_id" type="INTEGER" />
<column name="currency_id" type="INTEGER" />
<column defaultValue="0" name="discount" type="FLOAT" />
<foreign-key foreignTable="customer" name="fk_cart_customer_id">
<foreign-key foreignTable="customer" name="fk_cart_customer_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="customer_id" />
</foreign-key>
<foreign-key foreignTable="address" name="fk_cart_address_delivery_id">
<foreign-key foreignTable="address" name="fk_cart_address_delivery_id" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference foreign="id" local="address_delivery_id" />
</foreign-key>
<foreign-key foreignTable="address" name="fk_cart_address_invoice_id">
<foreign-key foreignTable="address" name="fk_cart_address_invoice_id" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference foreign="id" local="address_invoice_id" />
</foreign-key>
<foreign-key foreignTable="currency" name="fk_cart_currency_id">
<foreign-key foreignTable="currency" name="fk_cart_currency_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="currency_id" />
</foreign-key>
<index name="idx_cart_customer_id">
@@ -970,13 +971,13 @@
<column name="price_end_of_life" type="TIMESTAMP" />
<column defaultValue="0" name="discount" type="FLOAT" />
<column name="promo" type="INTEGER" />
<foreign-key foreignTable="cart" name="fk_cart_item_cart_id">
<foreign-key foreignTable="cart" name="fk_cart_item_cart_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="cart_id" />
</foreign-key>
<foreign-key foreignTable="product" name="fk_cart_item_product_id">
<foreign-key foreignTable="product" name="fk_cart_item_product_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="product_id" />
</foreign-key>
<foreign-key foreignTable="product_sale_elements" name="fk_cart_item_product_sale_elements_id">
<foreign-key foreignTable="product_sale_elements" name="fk_cart_item_product_sale_elements_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="product_sale_elements_id" />
</foreign-key>
<index name="idx_cart_item_cart_id">
@@ -995,6 +996,7 @@
<column name="currency_id" primaryKey="true" required="true" type="INTEGER" />
<column name="price" required="true" type="FLOAT" />
<column name="promo_price" type="FLOAT" />
<column defaultValue="0" name="from_default_currency" required="true" type="BOOLEAN" />
<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>
@@ -1243,7 +1245,7 @@
</index>
<behavior name="timestampable" />
</table>
<table name="newsletter">
<table name="newsletter" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="email" required="true" size="255" type="VARCHAR" />
<column name="firstname" size="255" type="VARCHAR" />