[*] BO : product images can now be dragged and dropped to change position (CC021)

This commit is contained in:
tDidierjean
2011-09-13 15:22:29 +00:00
parent 95d5d50af4
commit 36ae7699df
6 changed files with 92 additions and 14 deletions
-1
View File
@@ -757,7 +757,6 @@ CREATE TABLE `PREFIX_image` (
`cover` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id_image`),
KEY `image_product` (`id_product`),
UNIQUE KEY `product_position` (`id_product`,`position`),
KEY `id_product_cover` (`id_product`,`cover`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
+3
View File
@@ -75,3 +75,6 @@ INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VAL
ALTER TABLE `PREFIX_product` ADD `available_date` DATETIME NOT NULL AFTER `available_for_order`;
ALTER TABLE `PREFIX_product_attribute` ADD `available_date` DATETIME NOT NULL;
/* Index was only used by deprecated function Image::positionImage() */
ALTER TABLE `PREFIX_image` DROP INDEX `product_position`;