// fix update for module productcomments
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15441 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
511f65fa25
commit
59717088d1
2 files changed
+49
No files matched your search
@@ -0,0 +1,48 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* 2007-2012 PrestaShop
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Open Software License (OSL 3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* http://opensource.org/licenses/osl-3.0.php
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* DISCLAIMER
|
||||||
|
*
|
||||||
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||||
|
* versions in the future. If you wish to customize PrestaShop for your
|
||||||
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2012 PrestaShop SA
|
||||||
|
* @version Release: $Revision$
|
||||||
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*/
|
||||||
|
|
||||||
|
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` (
|
||||||
|
`id_product_comment` int(10) unsigned NOT NULL,
|
||||||
|
`id_customer` int(10) unsigned NOT NULL,
|
||||||
|
`usefulness` tinyint(1) unsigned NOT NULL,
|
||||||
|
PRIMARY KEY (`id_product_comment`, `id_customer`)
|
||||||
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8');
|
||||||
|
|
||||||
|
Db::getInstance()->execute('
|
||||||
|
CREATE TABLE IF NOT EXISTS `ps_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`)
|
||||||
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -30,6 +30,7 @@ ALTER TABLE `PREFIX_pagenotfound` ADD `id_shop_group` INT(10) AFTER `id_pagenotf
|
|||||||
|
|
||||||
/* PHP:add_new_groups('Non identifié', 'Unidentified'); */;
|
/* PHP:add_new_groups('Non identifié', 'Unidentified'); */;
|
||||||
/* PHP:editorial_update_multishop(); */;
|
/* PHP:editorial_update_multishop(); */;
|
||||||
|
/* PHP:update_module_product_comments(); */;
|
||||||
|
|
||||||
ALTER TABLE `PREFIX_customer`
|
ALTER TABLE `PREFIX_customer`
|
||||||
ADD `id_risk` int(10) unsigned NOT NULL DEFAULT '1',
|
ADD `id_risk` int(10) unsigned NOT NULL DEFAULT '1',
|
||||||
|
|||||||
Reference in new issue
Block a user