first commit
This commit is contained in:
27
modules/higallery/upgrade/index.php
Normal file
27
modules/higallery/upgrade/index.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
24
modules/higallery/upgrade/upgrade-1.0.3.php
Normal file
24
modules/higallery/upgrade/upgrade-1.0.3.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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_0_3($module)
|
||||
{
|
||||
Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'higallery_lang` ADD `title` VARCHAR( 255 ) NOT NULL AFTER `link_rewrite`');
|
||||
Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'higallery_lang` ADD `description` text NOT NULL AFTER `title`');
|
||||
|
||||
return true;
|
||||
}
|
||||
28
modules/higallery/upgrade/upgrade-1.0.5.php
Normal file
28
modules/higallery/upgrade/upgrade-1.0.5.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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_0_5($module)
|
||||
{
|
||||
Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'higallery_image` MODIFY image VARCHAR(255)');
|
||||
|
||||
$languages = Language::getLanguages(false);
|
||||
foreach ($languages as $lang) {
|
||||
Configuration::updateValue('HI_GALLERY_PAGE_URL', array($lang['id_lang'] => 'gallery'));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
32
modules/higallery/upgrade/upgrade-1.1.0.php
Normal file
32
modules/higallery/upgrade/upgrade-1.1.0.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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_0($module)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'higallerysocialnetwork` (
|
||||
`id_higallerysocialnetwork` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(256) NOT NULL,
|
||||
`active` tinyint(1) unsigned NOT NULL DEFAULT \'1\',
|
||||
`access_token` varchar(256) NOT NULL,
|
||||
`social_network` varchar(256) NOT NULL,
|
||||
PRIMARY KEY (`id_higallerysocialnetwork`)
|
||||
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=UTF8;
|
||||
');
|
||||
|
||||
return true;
|
||||
}
|
||||
25
modules/higallery/upgrade/upgrade-1.1.1.php
Normal file
25
modules/higallery/upgrade/upgrade-1.1.1.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user