// Copy fix from trunk: #PSCFI-4397 - Missing unique index on PREFIX_category_product
This commit is contained in:
@@ -333,7 +333,7 @@ CREATE TABLE `PREFIX_category_product` (
|
|||||||
`id_category` int(10) unsigned NOT NULL,
|
`id_category` int(10) unsigned NOT NULL,
|
||||||
`id_product` int(10) unsigned NOT NULL,
|
`id_product` int(10) unsigned NOT NULL,
|
||||||
`position` int(10) unsigned NOT NULL default '0',
|
`position` int(10) unsigned NOT NULL default '0',
|
||||||
KEY `category_product_index` (`id_category`,`id_product`),
|
UNIQUE KEY `category_product_index` (`id_category`,`id_product`),
|
||||||
INDEX (`id_product`)
|
INDEX (`id_product`)
|
||||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user