Added title_id column in customer table

This commit is contained in:
franck
2013-07-18 09:40:21 +02:00
parent b177367893
commit 2c52df1034
9 changed files with 706 additions and 72 deletions

View File

@@ -329,6 +329,7 @@
<table name="customer" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="ref" required="true" size="50" type="VARCHAR" />
<column name="title_id" type="INTEGER" />
<column name="firstname" required="true" size="255" type="VARCHAR" />
<column name="lastname" required="true" size="255" type="VARCHAR" />
<column name="email" size="50" type="VARCHAR" />
@@ -338,6 +339,9 @@
<column name="lang" size="10" type="VARCHAR" />
<column name="sponsor" size="50" type="VARCHAR" />
<column name="discount" type="FLOAT" />
<foreign-key foreignTable="customer_title" name="fk_address_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference foreign="id" local="title_id" />
</foreign-key>
<unique name="ref_UNIQUE">
<unique-column name="ref" />
</unique>