// prefix

This commit is contained in:
fBrignoli
2012-06-06 13:48:20 +00:00
parent cd64cf59d7
commit 9def68befe
2 changed files with 5 additions and 4 deletions
@@ -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.'"');
}
@@ -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`)