/home/sharedstore/public_html/prestashop.sharedstore.ma/modules/psgdpr/upgrade
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/modules/psgdpr/upgrade/upgrade-1.4.0.php (1384B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param Psgdpr $module
*
* @return bool
*/
function upgrade_module_1_4_0($module)
{
// Update database
$sql = ' ALTER TABLE `' . _DB_PREFIX_ . 'psgdpr_log`
ADD INDEX `idx_id_customer` ( `id_customer`, `id_guest`, `client_name`, `id_module`, `date_add`, `date_upd`); ';
if (Db::getInstance()->execute($sql) == false) {
return false;
}
// Remove hook
return $module->unregisterHook('registerGDPRConsent')
&& $module->unregisterHook('actionDeleteGDPRCustomer');
}