Permalink
Browse files

[-] INSTALLER : Fix bug #PSCFV-8167 bad drop of non-existent index an…

…d correct genders image copy
  • Loading branch information...
1 parent 8e98267 commit fec2866be6d83b14854ed06ea6fcf61bac491494 @gRoussac gRoussac committed Mar 25, 2013
Showing with 9 additions and 9 deletions.
  1. +8 −8 install-dev/upgrade/php/update_genders_images.php
  2. +1 −1 install-dev/upgrade/sql/1.5.1.0.sql
View
16 install-dev/upgrade/php/update_genders_images.php
@@ -26,12 +26,12 @@
function update_genders_images()
{
- if (file_exists(_PS_IMG_DIR_.'genders/Mr.jpg'))
- @rename(_PS_IMG_DIR_.'genders/Mr.jpg', _PS_IMG_DIR_.'genders/1.jpg');
- if (file_exists(_PS_IMG_DIR_.'genders/Ms.jpg'))
- @rename(_PS_IMG_DIR_.'genders/Ms.jpg', _PS_IMG_DIR_.'genders/2.jpg');
- if (file_exists(_PS_IMG_DIR_.'genders/Miss.jpg'))
- @rename(_PS_IMG_DIR_.'genders/Miss.jpg', _PS_IMG_DIR_.'genders/3.jpg');
- if (file_exists(_PS_IMG_DIR_.'genders/unknown.jpg'))
- @rename(_PS_IMG_DIR_.'unknown.jpg', _PS_IMG_DIR_.'Unknown.jpg');
+ if (file_exists(_PS_ROOT_DIR_.'/img/genders/Mr.jpg'))
+ @rename(_PS_ROOT_DIR_.'/img/genders/Mr.jpg', _PS_ROOT_DIR_.'/img/genders/1.jpg');
+ if (file_exists(_PS_ROOT_DIR_.'/img/genders/Ms.jpg'))
+ @rename(_PS_ROOT_DIR_.'/img/genders/Ms.jpg', _PS_ROOT_DIR_.'/img/genders/2.jpg');
+ if (file_exists(_PS_ROOT_DIR_.'/img/genders/Miss.jpg'))
+ @rename(_PS_ROOT_DIR_.'/img/genders/Miss.jpg', _PS_ROOT_DIR_.'/img/genders/3.jpg');
+ if (file_exists(_PS_ROOT_DIR_.'genders/unknown.jpg'))
+ @rename(_PS_ROOT_DIR_.'/img/genders/unknown.jpg', _PS_ROOT_DIR_.'/img/genders/Unknown.jpg');
}
View
2 install-dev/upgrade/sql/1.5.1.0.sql
@@ -16,5 +16,5 @@ ALTER TABLE `PREFIX_order_carrier` CHANGE `weight` `weight` DECIMAL(20, 6) NOT N
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_stock_available` DROP INDEX `product_sqlstock`;
-ALTER TABLE `PREFIX_stock_available` ADD UNIQUE (`id_product`, `id_product_attribute`, `id_shop`);
+ALTER TABLE `PREFIX_stock_available` ADD UNIQUE `product_sqlstock` (`id_product`, `id_product_attribute`, `id_shop`);
ALTER TABLE `PREFIX_cms` ADD INDEX (`id_cms_category`);

0 comments on commit fec2866

Please sign in to comment.