[-] Installer: fix UNIQUE key on stock_available table #PSCFV-7886
This commit is contained in:
@@ -2236,7 +2236,7 @@ CREATE TABLE `PREFIX_stock_available` (
|
|||||||
KEY `id_shop_group` (`id_shop_group`),
|
KEY `id_shop_group` (`id_shop_group`),
|
||||||
KEY `id_product` (`id_product`),
|
KEY `id_product` (`id_product`),
|
||||||
KEY `id_product_attribute` (`id_product_attribute`),
|
KEY `id_product_attribute` (`id_product_attribute`),
|
||||||
UNIQUE `product_sqlstock` ( `id_product` , `id_product_attribute` , `id_shop` )
|
UNIQUE `product_sqlstock` (`id_product` , `id_product_attribute` , `id_shop`, `id_shop_group`)
|
||||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `PREFIX_supply_order` (
|
CREATE TABLE `PREFIX_supply_order` (
|
||||||
|
|||||||
@@ -32,3 +32,6 @@ CREATE TABLE `PREFIX_tab_module_preference` (
|
|||||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
/* PHP:add_new_tab(AdminMarketing, es:Marketing|it:Marketing|en:Marketing|de:Marketing|fr:Marketing, 1); */;
|
/* PHP:add_new_tab(AdminMarketing, es:Marketing|it:Marketing|en:Marketing|de:Marketing|fr:Marketing, 1); */;
|
||||||
|
|
||||||
|
ALTER TABLE `PREFIX_stock_available` DROP INDEX `product_sqlstock`;
|
||||||
|
ALTER TABLE `PREFIX_stock_available` ADD UNIQUE `product_sqlstock` (`id_product`, `id_product_attribute`, `id_shop`, `id_shop_group`);
|
||||||
Reference in New Issue
Block a user