From 348b9094b3843aa9c231deea31b1e73fc7b10e3d Mon Sep 17 00:00:00 2001 From: davidmolinacano Date: Fri, 1 Sep 2023 15:34:39 +0200 Subject: [PATCH] feat: version bump and landing cache deletion on update --- doofinder.php | 4 ++-- upgrade/upgrade-4.7.1.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 upgrade/upgrade-4.7.1.php diff --git a/doofinder.php b/doofinder.php index 85b7716..55a3e0e 100644 --- a/doofinder.php +++ b/doofinder.php @@ -35,7 +35,7 @@ class Doofinder extends Module const DOOMANAGER_URL = 'https://admin.doofinder.com'; const GS_SHORT_DESCRIPTION = 1; const GS_LONG_DESCRIPTION = 2; - const VERSION = '4.7.0'; + const VERSION = '4.7.1'; const YES = 1; const NO = 0; @@ -43,7 +43,7 @@ public function __construct() { $this->name = 'doofinder'; $this->tab = 'search_filter'; - $this->version = '4.7.0'; + $this->version = '4.7.1'; $this->author = 'Doofinder (http://www.doofinder.com)'; $this->ps_versions_compliancy = ['min' => '1.5', 'max' => _PS_VERSION_]; $this->module_key = 'd1504fe6432199c7f56829be4bd16347'; diff --git a/upgrade/upgrade-4.7.1.php b/upgrade/upgrade-4.7.1.php new file mode 100644 index 0000000..6d5b2df --- /dev/null +++ b/upgrade/upgrade-4.7.1.php @@ -0,0 +1,33 @@ + + * @copyright 2007-2022 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + * International Registered Trademark & Property of PrestaShop SA + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +function upgrade_module_4_7_1($module) +{ + return Db::getInstance()->delete('doofinder_landing'); +}