fix duplicated foreign key
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
<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">
|
||||
<foreign-key foreignTable="customer_title" name="fk_customer_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT">
|
||||
<reference foreign="id" local="title_id" />
|
||||
</foreign-key>
|
||||
<unique name="ref_UNIQUE">
|
||||
|
||||
Reference in New Issue
Block a user