From f96d1be863f6db2d2ba29cf82bfbcd965775d84a Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Wed, 6 Jun 2012 13:48:20 +0000 Subject: [PATCH] // prefix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15878 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/upgrade/php/drop_image_type_non_unique_index.php | 5 +++-- install-dev/upgrade/php/update_module_product_comments.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/install-dev/upgrade/php/drop_image_type_non_unique_index.php b/install-dev/upgrade/php/drop_image_type_non_unique_index.php index bfb70d254..5a6c96eed 100644 --- a/install-dev/upgrade/php/drop_image_type_non_unique_index.php +++ b/install-dev/upgrade/php/drop_image_type_non_unique_index.php @@ -27,7 +27,8 @@ function drop_image_type_non_unique_index() { - $index = Db::getInstance()->executeS('SHOW index FROM ps_image_type where column_name = "name" and non_unique=1'); + $index = Db::getInstance()->executeS('SHOW index FROM `'._DB_PREFIX_.'image_type where column_name = "name" and non_unique=1'); // do not use pSql, this function is not defined - Db::getInstance()->execute('ALTER TABLE `PREFIX_image_type` DROP INDEX "'.$index.'"'); + Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'image_type` DROP INDEX "'.$index.'"'); } + diff --git a/install-dev/upgrade/php/update_module_product_comments.php b/install-dev/upgrade/php/update_module_product_comments.php index 8b7e2bad3..410360cc9 100644 --- a/install-dev/upgrade/php/update_module_product_comments.php +++ b/install-dev/upgrade/php/update_module_product_comments.php @@ -30,7 +30,7 @@ function update_module_product_comments() if (Db::getInstance()->getValue('SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name`="productcomments"')) { Db::getInstance()->execute(' - CREATE TABLE IF NOT EXISTS `ps_product_comment_usefulness` ( + CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'product_comment_usefulness` ( `id_product_comment` int(10) unsigned NOT NULL, `id_customer` int(10) unsigned NOT NULL, `usefulness` tinyint(1) unsigned NOT NULL, @@ -38,7 +38,7 @@ function update_module_product_comments() ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8'); Db::getInstance()->execute(' - CREATE TABLE IF NOT EXISTS `ps_product_comment_report` ( + CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'product_comment_report` ( `id_product_comment` int(10) unsigned NOT NULL, `id_customer` int(10) unsigned NOT NULL, PRIMARY KEY (`id_product_comment`, `id_customer`)