newsletter modification from account

email modification from account
This commit is contained in:
Etienne Roudeix
2013-10-24 12:10:35 +02:00
parent b9e5b4d9c7
commit ca03e374f2
7 changed files with 82 additions and 32 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,13 +768,12 @@
<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" />
</table>
<table isCrossRef="true" name="profile_resource" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="profile_id" primaryKey="true" required="true" type="INTEGER" />
<column name="resource_id" primaryKey="true" required="true" type="INTEGER" />
<column defaultValue="0" name="access" required="true" type="INTEGER" />
@@ -783,7 +783,7 @@
<foreign-key foreignTable="resource" name="fk_profile_resource_resource_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="resource_id" />
</foreign-key>
<index name="id_profile_resource_profile_id">
<index name="idx_profile_resource_profile_id">
<index-column name="profile_id" />
</index>
<index name="idx_profile_resource_resource_id">
@@ -792,9 +792,8 @@
<behavior name="timestampable" />
</table>
<table name="profile_module" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="profile_id" required="true" type="INTEGER" />
<column name="module_id" type="INTEGER" />
<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" type="TINYINT" />
<foreign-key foreignTable="profile" name="fk_profile_module_profile_id" onDelete="CASCADE" onUpdate="CASCADE">
<reference foreign="id" local="profile_id" />
@@ -932,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">
@@ -972,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,8 +994,9 @@
<table name="product_price" namespace="Thelia\Model">
<column name="product_sale_elements_id" primaryKey="true" required="true" type="INTEGER" />
<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="price" required="true" type="FLOAT" />
<column defaultValue="0" name="promo_price" required="true" type="FLOAT" />
<column defaultValue="1" 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>
@@ -1250,7 +1250,10 @@
<column name="email" required="true" size="255" type="VARCHAR" />
<column name="firstname" size="255" type="VARCHAR" />
<column name="lastname" size="255" type="VARCHAR" />
<column name="locale" size="45" type="VARCHAR" />
<column name="locale" size="5" type="VARCHAR" />
<unique name="email_UNIQUE">
<unique-column name="email" />
</unique>
<behavior name="timestampable" />
</table>
</database>