Files
drmaterac.pl/modules/pagecache/upgrade/Upgrade-7.5.0.php
2025-03-21 20:24:43 +01:00

36 lines
1.1 KiB
PHP

<?php
/**
* Page Cache Ultimate, Page Cache standard and Speed pack are powered by Jpresta (jpresta . com)
*
* @author Jpresta
* @copyright Jpresta
* @license See the license of this module in file LICENSE.txt, thank you.
*/
use JPresta\SpeedPack\JprestaUtils;
if (!defined('_PS_VERSION_')) {exit;}
/**
* @var $module Jprestaspeedpack
* @return bool
*/
function upgrade_module_7_5_0($module)
{
$ret = true;
$module->updateCacheKeyForCountries();
JprestaUtils::dbExecuteSQL('ALTER TABLE `' . _DB_PREFIX_ . PageCacheDAO::TABLE . '` DROP COLUMN `mask_country`');
$module->registerHook('actionObjectSpecificPriceDeleteAfter');
$module->registerHook('actionObjectSpecificPriceRuleAddAfter');
$module->registerHook('actionObjectSpecificPriceRuleUpdateAfter');
$module->registerHook('actionObjectSpecificPriceRuleDeleteAfter');
$module->registerHook('actionObjectCartRuleAddAfter');
$module->registerHook('actionObjectCartRuleUpdateAfter');
$module->registerHook('actionObjectCartRuleDeleteAfter');
return (bool)$ret;
}