diff --git a/lowcostexpress.php b/lowcostexpress.php index 049e928..7c98805 100755 --- a/lowcostexpress.php +++ b/lowcostexpress.php @@ -89,7 +89,7 @@ public function __construct() { $this->name = 'lowcostexpress'; $this->tab = 'shipping_logistics'; - $this->version = '1.0.0'; + $this->version = '1.0.1'; $this->author = 'MY FLYING BOX SAS'; parent::__construct(); diff --git a/upgrade/install-1.0.1.php b/upgrade/install-1.0.1.php new file mode 100644 index 0000000..b1e7af8 --- /dev/null +++ b/upgrade/install-1.0.1.php @@ -0,0 +1,42 @@ + + * @copyright 2017 MyFlyingBox + * + * @version 1.0 + * + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + */ + +if (!defined('_PS_VERSION_')) { + exit; +} + +function upgrade_module_1_0_1($module) +{ + # This update was forgotten in the SQL fresh install script on 0.0.24 and 1.0.0. + Db::getInstance()->execute( + 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'lce_cart_selected_relay` ( + `id_cart` int(10) NOT null, + `relay_code` varchar(10) NOT null, + PRIMARY KEY (`id_cart`) + ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;' + ); + + return true; +}