Skip to content

Commit

Permalink
Bump to v1.0.1, with SQL update script in case of ancien fresh instal…
Browse files Browse the repository at this point in the history
…l with missing table
  • Loading branch information
tbelliard committed Mar 8, 2017
1 parent d09be76 commit b1e3982
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lowcostexpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
42 changes: 42 additions & 0 deletions upgrade/install-1.0.1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade your module to newer
* versions in the future.
*
* @author MyFlyingBox <[email protected]>
* @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;
}

0 comments on commit b1e3982

Please sign in to comment.