// small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17636 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2229,7 +2229,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`),
|
||||||
KEY `product_sqlstock` ( `id_product` , `id_product_attribute` , `id_shop` )
|
UNIQUE `product_sqlstock` ( `id_product` , `id_product_attribute` , `id_shop` )
|
||||||
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `PREFIX_supply_order` (
|
CREATE TABLE `PREFIX_supply_order` (
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ ALTER TABLE `PREFIX_product_attribute_shop` CHANGE `weight` `weight` DECIMAL(20,
|
|||||||
ALTER TABLE `PREFIX_order_carrier` CHANGE `weight` `weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
ALTER TABLE `PREFIX_order_carrier` CHANGE `weight` `weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
||||||
ALTER TABLE `PREFIX_attribute_impact` CHANGE `weight` `weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
ALTER TABLE `PREFIX_attribute_impact` CHANGE `weight` `weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
||||||
ALTER TABLE `PREFIX_order_detail` CHANGE `product_weight` `product_weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
ALTER TABLE `PREFIX_order_detail` CHANGE `product_weight` `product_weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
|
||||||
|
ALTER TABLE `PREFIX_stock_available` DROP INDEX `product_sqlstock`;
|
||||||
|
ALTER TABLE `PREFIX_stock_available` ADD UNIQUE (`id_product`, `id_product_attribute`, `id_shop`);
|
||||||
|
|||||||
Reference in New Issue
Block a user