fix duplicated foreign key

This commit is contained in:
Manuel Raynaud
2013-07-23 10:57:37 +02:00
parent 274b515f0a
commit 9a9572e1b5
2 changed files with 3 additions and 3 deletions

View File

@@ -467,8 +467,8 @@ CREATE TABLE `customer`
`updated_at` DATETIME, `updated_at` DATETIME,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE INDEX `ref_UNIQUE` (`ref`), UNIQUE INDEX `ref_UNIQUE` (`ref`),
INDEX `FI_address_customer_title_id` (`title_id`), INDEX `FI_customer_customer_title_id` (`title_id`),
CONSTRAINT `fk_address_customer_title_id` CONSTRAINT `fk_customer_customer_title_id`
FOREIGN KEY (`title_id`) FOREIGN KEY (`title_id`)
REFERENCES `customer_title` (`id`) REFERENCES `customer_title` (`id`)
ON UPDATE RESTRICT ON UPDATE RESTRICT

View File

@@ -339,7 +339,7 @@
<column name="lang" size="10" type="VARCHAR" /> <column name="lang" size="10" type="VARCHAR" />
<column name="sponsor" size="50" type="VARCHAR" /> <column name="sponsor" size="50" type="VARCHAR" />
<column name="discount" type="FLOAT" /> <column name="discount" type="FLOAT" />
<foreign-key foreignTable="customer_title" name="fk_address_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="customer_title" name="fk_customer_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference foreign="id" local="title_id" /> <reference foreign="id" local="title_id" />
</foreign-key> </foreign-key>
<unique name="ref_UNIQUE"> <unique name="ref_UNIQUE">