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,
PRIMARY KEY (`id`),
UNIQUE INDEX `ref_UNIQUE` (`ref`),
INDEX `FI_address_customer_title_id` (`title_id`),
CONSTRAINT `fk_address_customer_title_id`
INDEX `FI_customer_customer_title_id` (`title_id`),
CONSTRAINT `fk_customer_customer_title_id`
FOREIGN KEY (`title_id`)
REFERENCES `customer_title` (`id`)
ON UPDATE RESTRICT