26 lines
667 B
PHP
26 lines
667 B
PHP
<?php
|
|
/**
|
|
* 2012 - 2020 HiPresta
|
|
*
|
|
* MODULE Gallery
|
|
*
|
|
* @author HiPresta <support@hipresta.com>
|
|
* @copyright HiPresta 2020
|
|
* @license Addons PrestaShop license limitation
|
|
* @link https://hipresta.com
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* Don't use this module on several shops. The license provided by PrestaShop Addons
|
|
* for all its modules is valid only once for a single shop.
|
|
*/
|
|
|
|
function upgrade_module_1_1_1($module)
|
|
{
|
|
// Add gallery position for sorting
|
|
$module->HiPrestaClass->addTableColumn('higallery', 'sort', 'int unsigned', 'position');
|
|
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'higallery` SET sort = id_gallery');
|
|
|
|
return true;
|
|
}
|